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.

6 comments:

  1. Thanks a lot... This helped even for me.

    ReplyDelete
  2. can you explain why this happen ?

    ReplyDelete
    Replies
    1. I think it's because your apt-get list is outdated and does not have package git

      Delete
  3. I am having this same error when trying to install wireshark on ubuntu. But I dont understand the solution you provided. Please help me updating this apt-get list. I'm so new to this linux :(
    I'd be thankful to you.

    ReplyDelete
  4. I am also having this issue, unfortunately 'apt-get update' doesn't fix it for me (first thing I tried before googling). Incidentally I get this error for every package, even one's I have install that I'm trying to 'remove'. Any other ideas?

    ReplyDelete