I am not able to install docker compose on my Linux system.getting below error after running installation command:
~$ sudo apt-get -f install docker-compose Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: code : Depends: libnotify4 but it is not going to be installed Depends: libnss3 but it is not going to be installed Depends: libxkbfile1 but it is not going to be installed Depends: libgconf-2-4 but it is not going to be installed Depends: libsecret-1-0 but it is not going to be installed docker-compose : Depends: python-cached-property but it is not going to be installed Depends: python-docker (>= 1.9.0) but it is not going to be installed Depends: python-dockerpty (>= 0.4.1) but it is not going to be installed Depends: python-docopt but it is not going to be installed Depends: python-enum34 but it is not going to be installed Depends: python-jsonschema but it is not going to be installed Depends: python-requests (>= 2.6.1) but it is not going to be installed Depends: python-six (>= 1.3.0) but it is not going to be installed Depends: python-texttable but it is not going to be installed Depends: python-websocket but it is not going to be installed Depends: python-yaml but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Can anyone please help me out? I tried sudo apt-get clean as well but no use
Advertisement
Answer
I think the easiest way to install docker-compose is via pip:
sudo apt-get install python-pip sudo pip install docker-compose