Tuesday, April 16, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 28394  / 3 Years ago, thu, october 28, 2021, 9:29:47

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.


More From » apt

 Answers
4

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



uname -i 


If you are running a 32 bit system, the output will contain:



 i386 


Thus, for a 32bit system, open your sources.list file with gedit:



gksudo gedit /etc/apt/sources.list


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:



sudo apt-get update  
sudo apt-get -f install

[#36129] Friday, October 29, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
diffeah

Total Points: 78
Total Questions: 130
Total Answers: 98

Location: Peru
Member since Fri, Oct 14, 2022
2 Years ago
;