Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Every time I try to do some update (sudo apt-get update) it says:

Reading package lists ... ready
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ need /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/ need /partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages)
W: You have to run apt-get update to correct these problems

sources.list: http://paste.ubuntu.com/1180190/

ls /etc/apt/sources.list.d/ as requested:

milton@milton-HuronRiver-Platform:~$ ls /etc/apt/sources.list.d/
emesene-team-emesene-stable-precise.list
precise-partner.list
precise-partner.list.save
upubuntu-com-chat-precise.list
upubuntu-com-chat-precise.list.save
share|improve this question
1  
Hey, @jokerdino just gave me this link to a website that will re-build your sources list, which may be the best solution to all four of your questions posted so far. – Tom Brossman Sep 2 '12 at 7:12

2 Answers

up vote 7 down vote accepted

The partner repository is duplicated inside /etc/apt/sources.list and /etc/apt/sources.list.d/precise-partner.list.

Just remove those "precise-partner" files as the partner repository is already present in sources.list.

sudo rm /etc/apt/sources.list.d/precise-partner.*
share|improve this answer
I'm getting rm: cannot remove '/etc/apt/sources.list.d/precise-partner.*': No such file or directory – Dennis Mar 30 at 23:35
Try sudo rm /etc/apt/sources.list.d/*partner*. Also check your /etc/apt/sources.list, look for duplicate lines. – Eric Carvalho Mar 31 at 0:51

Use the Ubuntu Sources List Generator.

  • Run sudo nautilus in terminal
  • /etc/apt/sources.list
  • Right click and open the file with a text editor (if you click on it, it will open the software sources GUI)
  • Simply copy and paste into the sources.list and save.
  • Exit terminal and you're done.

Google seems to have a problem, so I'd suggest leaving that out. I have done this onĀ Ubuntu 12.10 (Studio version with Ubuntu desktop added and Unity for another desktop sign in).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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