Home > debian > Duplicate source list entry

Duplicate source list entry

Problem:

I got the following error

W: Duplicate sources.list entry http://ftp.de.debian.org/debian/ wheezy/main i386 Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_wheezy_main_binary-i386_Packages)

Solution:
My /etc/apt/sources.list looks like this:

# deb cdrom:[Debian GNU/Linux 7.1.0 _Wheezy_ – Official i386 DVD Binary-1 20130615-21:54]/ wheezy contrib main

deb cdrom:[Debian GNU/Linux 7.1.0 _Wheezy_ – Official i386 DVD Binary-1 20130615-21:54]/ wheezy contrib main

deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib

# wheezy-updates, previously known as ‘volatile’
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ wheezy-updates main contrib
# deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib

# Added on 2013-11-03
deb http://ftp.de.debian.org/debian wheezy main
deb http://ftp.de.debian.org/debian wheezy main non-free

First hit on google unviels that the duplicate entry is caused by main being listed twice as seen below

deb http://ftp.de.debian.org/debian wheezy main
deb http://ftp.de.debian.org/debian wheezy main non-free

I commented out the first one and the problem was solved.

Sources:
http://forums.debian.net/viewtopic.php?f=10&t=76382

Further Reading:
http://www.debian.org/doc/manuals/debian-reference/ch02.en.html

Advertisements
Categories: debian
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: