Lately whenever I run
sudo apt-get update
it gives me the following error after the 'reading database' step
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner amd64 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
Well I have run apt-get update over and over again and nothing changed.
I also tried the options
sudo apt-get update --fix-missing
and
sudo apt-get update -f
which are really the same thing I know, but nothing seems to help.
Best Answer
You seem to have both 32 and 64 bit repositories enabled and so you have two incompatible sources available. To find out whether your system architecture is 32 or 64 bit, enter in the terminal
If you are running a 32 bit system, the output will contain:
Thus, for a 32bit system, open your
sources.list
file with gedit:and remove completely any line that contains
amd64 Packages
.Obviously, for a 64bit system remove the line that contains the
i386 packages
.After you have edited your
sources.list
, saved it, and closed gedit, enter these commands: