Thursday, April 14, 2011

E: Unable to locate package - apt-get install error

test@test-Veriton-S661:~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git

To fix this, you probably just need to update the apt-get list.


test@test-Veriton-S661:~$ sudo apt-get update
Get:1 http://au.archive.ubuntu.com maverick Release.gpg [198B]
Ign http://au.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Get:2 http://au.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_AU [1,813B]
Ign http://au.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
.
.
.

Then run the 'apt-get install' again to install the package that you want.