0

I have installed Ubuntu 14 (LTS) and there is not a single debian package that I can install right out of the box.

for instance:

sudo apt-get install docker

results in:

Reading package lists... Done

Building dependency tree       
Reading state information... Done
E: Unable to locate package docker

What could be the problem? On any other installation I have made of Ubuntu I could do stuff like that from the start with no additional configuration.

2
  • 1
    Start sudo apt-get update and try it again.
    – A.B.
    Oct 23, 2015 at 18:57
  • Great, answer done
    – A.B.
    Oct 23, 2015 at 19:08

2 Answers 2

2

The solution is simple. You have never started sudo apt-get update. Do it now and add the universe repository, which isn't enabled per default, to install docker:

sudo apt-add-repository universe
sudo apt-get update
0
1

docker is located in Ubuntu's universe repository. Open Software & Updates, check the box to enable the universe, and try again. Alternatively, you can edit /etc/apt/sources.list and add these four lines:

deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe

sudo apt-get update and try it again.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .