Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Duplicate sources list

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
jaynard09
Posts: 1
Joined: 2018-10-15 20:34

Duplicate sources list

#1 Post by jaynard09 »

Hi, I'm new here first time to use Debian.

I have a problem when getting apt update
It says I have duplicate source list

Code: Select all

W: Duplicate sources.list entry http://ftp.us.debian.org/debian/ unstable/main amd64 Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_unstable_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://ftp.us.debian.org/debian/ unstable/contrib amd64 Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_unstable_contrib_binary-amd64_Packages)
W: Duplicate sources.list entry http://ftp.us.debian.org/debian/ unstable/non-free amd64 Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_unstable_non-free_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
My source list

Code: Select all

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

deb http://ftp.debian.org/debian/ jessie-updates main
deb-src http://ftp.debian.org/debian/ jessie-updates main


deb http://ftp.debian.org/debian/ jessie main
deb-src http://ftp.debian.org/debian/ jessie main
Thanks,

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Duplicate sources list

#2 Post by stevepusser »

You are mixing unstable (Sid) repositories with oldstable (Jessie) repositories. Your sources.list does not list those Sid repos, so they are probably in a .list file in /etc/apt/sources.list.d

This is a very untenable situation, and you will end up with a broken system, if it's not too late already. Someone has to manually alter your sources to get into this mess...can you tell us how this happened?
MX Linux packager and developer

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Duplicate sources list

#3 Post by bw123 »

stevepusser is right, you can find it if you search for the word 'unstable' in apt. grep is a cool tool.

Code: Select all

$ grep -r unstable /etc/apt
I don't really recall when this sources.list.d appeared, but I think some things you install add files to it? I like the idea of .d configuration in general, but this habit of adding sources on installation doesn't happen in debian that I am aware of?

It might be a cool idea? to find a way to keep pkgs from editing or adding to the /etc/apt/sources.list.d/
resigned by AI ChatGPT

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Duplicate sources list

#4 Post by GarryRicketson »

I don't really recall when this sources.list.d appeared, but I think some things you install add files to it?
I have never seen any Debian packages that modify or add things to the sources.list.d directory, but with some :
https://www.debian.org/ >Debian provides more than a pure OS: it comes with over 51000 packages,
Obviously I have not tried over 51,000 packages, so don't really know on that.
How ever, I have seen plenty of random software , on random websites that do include scripts that add to the soureces.list.d file, One really needs to take a close look at what the scripts and code actually does before using anything or actually installing it. Even sites with good reputations, like github, and sourceforge have all sorts of stuff that can wreck a Debian system. The biggest part of the problem (my opinion, now) a lot of these so called "programmers", have practically 0 ,as in zero , experience with Debian, and perhaps even Linux in general, so they write this junk, using some windows program, and maybe try it on Ubuntu, or Linux Mint, and then claim it is software for Linux, with out taking into consideration that there are 100's of Linux distributions, and each one has it's own repositories, like Debian does, where the program has been compiled and packaged for Debian, or which ever distro it is going to be used for.
So then "newcomers", new to Debian, or new to Linux, unwittingly download something that has not been properly compiled and packaged, for their particular distro, and system.
Any way, I don't know if this is the case here, the OP really has not given enough information, the "sources.list" file looks ok, but as all ready pointed out :
by stevepusser » Someone has to manually alter your sources to get into this mess...can you tell us how this happened?

Post Reply