7

When I run apt-get update on my Ubuntu 13.10 Desktop install I get this error:

W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main       amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

What does this mean? how can I resolve it? and what issues can it create? I want to understand the problem So if I run into it or anyone else I can help resolve it.

  • See this Question. you can get a answer. – user224082 Nov 21 '13 at 12:44
20

If means you've got the same source defined twice in your apt sources. It's a warning not an error. You could continue like this indefinitely if you wished.

To fix it, you just need to remove one of the definitions. To see all the definitions, run:

grep -R --include="*.list" chrome /etc/apt/

It's then just a case of editing (sudoedit filename) one of those out (either delete the line or comment it out by sticking a # at the beginning.

4

First make sure about what arquitecture are you running and just remove the entry in Software Center>Edit>Sources or remove the line in your source list.

gksu gedit /etc/apt/sources.list

To find out your architecture

uname -a
  • best answer. because you actually know what you are doing here – Nasz Njoka Sr. Nov 24 '15 at 7:17
  • This is called perfect answer. – Jigar Bhatt Mar 27 '16 at 18:36
2

Its saying that you have duplicate lines in the /etc/apt/sources.list file. you have to remove those lines which were repeated.

type this command

sudo awk '!a[$0]++' /etc/apt/sources.list

it can delete the duplicate lines.

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