3

I received following error and then I tried apt-get update to correct it but that didn't work.

W: Duplicate sources.list entry http://http.us.debian.org/debian/ wheezy/contrib i386 Packages (/var/lib/apt/lists/http.us.debian.org_debian_dists_wheezy_contrib_binary-i386_Packages)
W: Duplicate sources.list entry http://http.us.debian.org/debian/ wheezy/non-free i386 Packages (/var/lib/apt/lists/http.us.debian.org_debian_dists_wheezy_non-free_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
2
  • 4
    Post your sources.list file...
    – jasonwryan
    Mar 8, 2015 at 0:08
  • @Raymond_W Agree to Jason. Without your sources.list file, nobody of us can help - period. So please remember to supply it if you still want help about this issue. Apr 28, 2015 at 1:43

1 Answer 1

7

The sources.list file is actually several files: /etc/apt/sources.list, and files called something.list in the directory /etc/apt/sources.list.d.

This message tells you that you have duplicate entries in those files: you have several lines pointing to the same source. This is a warning: it isn't wrong per se, but it indicates that your configuration is probably not right. Look for lines starting with deb http://http.us.debian.org/debian wheezy in the files I mentioned above. You have multiple such lines containing contrib and non-free. Either remove the redundant lines or correct them if you meant for them to point to something else.

1
  • unfortunately this answer did not work for me, I am getting the message but I cannot find any duplicates in sources.list and I can't find any files at all in sources.list.d
    – plugwash
    Feb 11, 2018 at 20:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .