10

Every time I run apt-get update, I get the following message (the exact duplicate package is different depending on the last entry in sources.list):

W: Duplicate sources.list entry http://ftp.uk.debian.org/debian/ squeeze/main armel Packages 
(/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_squeeze_main_binary-armel_Packages)

If I run apt-get update again, it's fine. What's going on?

  • Perhaps there are duplicated lines in sources.list....? – Jivings Jun 30 '12 at 18:29
  • @Jivings There are not – Tom Medley Jun 30 '12 at 19:17
  • @TomMedley did you remap the keyboard? – Steve Robillard Jun 30 '12 at 20:26
  • 1
    Can you please post the output of cat /etc/apt/sources.list and ls /etc/apt/sources.list.d. Thanks. – Jivings Jun 30 '12 at 21:32
  • 1
    Not a duplicate. This bug is specific to the RasPi Debian Squeeze image. – finnw Jul 3 '12 at 7:36
12

I think there is a bug in the image. /etc/apt/sources.list contains 2 lines that look like this

deb http://ftp.uk.debian.org/debian/ squeeze main
deb http://ftp.uk.debian.org/debian/ squeeze main non-free

To solve your problem, delete the first one.

Whilst the lines aren't exact duplicate, they do specify duplicate repositories.

  • That's fixed the problem! – Tom Medley Jul 2 '12 at 8:47
  • 1
    Well spotted Alex. – Jivings Jul 3 '12 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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