0

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
Braiam
  • 69,112
RAMXKP
  • 29
  • 1
  • 1
  • 5

1 Answers1

5

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

or:

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.

Radu Rădeanu
  • 174,089
  • 51
  • 332
  • 407