Duplicate sources list

Here you can discuss every aspect of Debian. Note: not for support requests!

Duplicate sources list

Postby jaynard09 » 2018-10-15 20:38

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,
jaynard09
 
Posts: 1
Joined: 2018-10-15 20:34

Re: Duplicate sources list

Postby stevepusser » 2018-10-15 20:51

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?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Quod Libet 4.2.0, Pale Moon 28.1.0, wine-staging 3.19, GIMP 2.10.8, Liquorix kernel 4.18-21, CopyQ 3.7.0
User avatar
stevepusser
 
Posts: 10109
Joined: 2009-10-06 05:53

Re: Duplicate sources list

Postby bw123 » 2018-10-15 20:54

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/
User avatar
bw123
 
Posts: 3510
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Duplicate sources list

Postby GarryRicketson » 2018-10-15 21:57

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?
User avatar
GarryRicketson
 
Posts: 5161
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable