Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

Using Ubuntu 14.04 LTS.

sudo apt-get update

thats all i ran, and it'd start off real smooth, then it'd get to a part where it gets stuck for like a fair ammount of time after which it'd display this error.

W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty/restricted amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_restricted_binary-amd64_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_restricted_binary-i386_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-updates/restricted amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-updates_restricted_binary-amd64_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-updates/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-updates_restricted_binary-i386_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-backports/restricted amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-backports_restricted_binary-amd64_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-backports/multiverse amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-backports_multiverse_binary-amd64_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-backports/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-backports_restricted_binary-i386_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-backports/multiverse i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-backports_multiverse_binary-i386_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-security/restricted amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-security_restricted_binary-amd64_Packages)
    W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-security/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-security_restricted_binary-i386_Packages)
    W: You may want to run apt-get update to correct these problems

of course the suggestion it suggested isnt going to work, as it's that very command after running which i came across the error. I've tried creating a new sources.list file, and also, in the 'other software' tab in the updater settings, i found two "canonical Partners" and thus i eradicated one of them. Still it wont work. there are a number of lists that the error tells of... I checked one and couldnt make any sense out of it.

Also, I installed the 32bit architecture manually so as to be able to use skype

share|improve this question

marked as duplicate by Jorge Castro, Eric Carvalho, Avinash Raj, Braiam, karel Apr 30 at 2:04

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.

    
@Anas Ismail Khan have you installed the 32-bit or the 64-bit version? –  Elder Geek Apr 26 at 20:08
1  
@ElderGeek Im using 64bit version –  Anas Ismail Khan Apr 26 at 20:11
    
@fossfreedom i've seen that post.. even tried the stuff there. + it's for precise, though i assure you that it probably wont make a difference –  Anas Ismail Khan Apr 26 at 20:14
    
@Anas Ismail Khan Did you backup your original sources.list file before you made the new one? –  Elder Geek Apr 26 at 20:39
    
@Anas Ismail Khan My 64-bit version is ubuntu studio but doesn't have either amd64 or i386 listed in the /etc/apt/sources.list file –  Elder Geek Apr 26 at 21:09
show 7 more comments

2 Answers 2

As Elder Greek observes you have both i386 32 bit and amd_64 bit entries. If you have synaptic or

sudo apt-get install synaptic

when you run it under Settings → Repositories → Other Software you will find the list of all your repositories.

Delete the i386 entries and Reload (update).

If there are any more duplicates it will tell you so you can check and delete.

share|improve this answer
    
How do i figure out which entries are for i386? Also, you dont neeed synaptic to get there :S + last night, i checked this, and found two entries of Canonical Partners.. i removed one of them.. didnt help –  Anas Ismail Khan Apr 27 at 15:07
add comment

You state: "Also, I installed the 32bit architecture manually so as to be able to use skype" If you need full compatibility with 32 bit code you should install the i386 version. Regardless you can solve this problem by carefully editing /etc/apt/sources.list

sudo gedit /etc/apt/sources.list

make sure every repository appears once and only once.

or copy the original sources.list file from a live cd/dvd/usb at the same location. Or even better consult this: How to fix Duplicate sources.list entry?

share|improve this answer
    
I checked the file... I couldnt find any duplicate entries... plus, i even created a new one and still faced the error... –  Anas Ismail Khan Apr 27 at 15:27
    
@Anas Ismail Khan Post the content of your /etc/apt/sources.list I'm sure it will be clear to someone. Thanks –  Elder Geek Apr 27 at 21:21
add comment

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