Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

When I want to update packages it shows this error:

gopi@Gopi-PC:~$ sudo apt-get install update
[sudo] password for gopi: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package update
share|improve this question

marked as duplicate by Eliah Kagan, guntbert, Andrea Corbellini, Alaa Ali, Kevin Bowen Sep 14 '13 at 16:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

because your command is wrong.. If you want to upgrade your system.. Run this command sudo apt-get update and sudo apt-get upgrade – Saurav Kumar Sep 8 '13 at 15:59
Exact duplicate of: “Failed to fetch” while updating. – Alaa Ali Sep 8 '13 at 16:01
@Alaa I just can't understand how this question is duplicate of "How can I install the package iftop?". – Radu Rădeanu Mar 16 '14 at 6:30
@RaduRădeanu Look at the history of that iftop question. The user was asking the same exact thing at first: he couldn't run "sudo apt-get install update". So I answered that question, which is almost identical to your answer below. When I saw this question here, I marked it as an exact duplicate. But then that iftop question evolved and his problem was that he couldn't install iftop. I edited my answer there to include that information for him, but I didn't remove the original answer because I had marked this as a duplicate to it. – Alaa Ali Mar 16 '14 at 13:29
Why are you guys reopening this question? The answer to the question marked is almost the same exact answer as the one by Radu. My answer even includes sudo apt-get install <package_name>. The title of a question doesn't matter. If the answer to two questions is the same, regardless of the question, they should be marked as duplicate. – Alaa Ali Mar 16 '14 at 13:32
up vote 5 down vote accepted

When you use sudo apt-get install update, the system will try to install a package called update which doesn't exists and because of this you get that error.

The correct command to resynchronize the package index files from their sources is:

sudo apt-get update


sudo aptitude update

Now, if you want to install the newest versions of all packages currently installed on the system from the sources, use upgrade instead update.

See also man apt-get and man aptitude.

share|improve this answer
thanks!!!!!!!!! – RAMXKP Oct 5 '13 at 10:34

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