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.
thanks, this helped
ReplyDeleteThanks a lot... This helped even for me.
ReplyDeletecan you explain why this happen ?
ReplyDeleteI think it's because your apt-get list is outdated and does not have package git
DeleteI 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 :(
ReplyDeleteI'd be thankful to you.
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