I am using ubuntu 17.04 on a virtualbox . I need to install docker-compose (1.8.0-2),using command line . Here https://packages.ubuntu.com/zesty/docker-compose I do not see any instructions for that.Can anyone please help me out.

I tried this:

enter image description here

  • 2
    sudo apt update and then sudo apt install docker-compose?
    – edwinksl
    Aug 30, 2017 at 17:26
  • edwinksl:thats not working either
    – Hemant
    Aug 30, 2017 at 17:28
  • 1
    "Not working" contains no information. This is the correct way to install the package. What happens when you run these commands? Post the output to your question if you want an answer.
    – Pilot6
    Aug 30, 2017 at 17:31
  • Pilot6: I have updated my question.
    – Hemant
    Aug 30, 2017 at 17:33
  • Please don't post terminal output as a screenshot. Post it as text.
    – Pilot6
    Aug 30, 2017 at 17:35

1 Answer 1


universe repository is not enabled for some reason.

Go to System Settings -> Software & Updates and enable it there.

In the command-line you can enable it by

sudo add-apt-repository universe

Then you will be able to install it by

sudo apt install docker-compose

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.