problem with sources.list

New to Debian (Or Linux in general)? Ask your questions here!

problem with sources.list

Postby mrproxie » 2017-10-10 05:53

hi,
this is my sources.list
Code: Select all
# deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 DVD Binary-1 20170722-11:31]/ stretch contrib main

#deb cdrom:[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 DVD Binary-1 20170722-11:31]/ stretch contrib main

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

deb  http://deb.debian.org/debian stretch main
#deb-src  http://deb.debian.org/debian stretch main

deb  http://deb.debian.org/debian stretch-updates main
#deb-src  http://deb.debian.org/debian stretch-updates main

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

######

deb  http://deb.debian.org/debian stretch main contrib non-free
#deb-src  http://deb.debian.org/debian stretch main contrib non-free

deb  http://deb.debian.org/debian stretch-updates main contrib non-free
#deb-src  http://deb.debian.org/debian stretch-updates main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
#deb-src http://security.debian.org/ stretch/updates main contrib non-free


when I run
Code: Select all
apt update

I get this errors
Code: Select all
Ign:1 http://deb.debian.org/debian stretch InRelease                           
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [62.9 kB]
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch Release                             
Hit:6 http://security.debian.org stretch/updates InRelease               
Get:7 http://deb.debian.org/debian stretch/contrib amd64 Packages [50.9 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [179 kB]
Get:9 http://deb.debian.org/debian stretch/contrib Translation-en [45.9 kB]   
Get:10 http://security.debian.org/debian-security stretch/updates/main Translation-en [82.9 kB]
Get:11 http://deb.debian.org/debian stretch/non-free amd64 Packages [78.0 kB] 
Get:12 http://security.debian.org/debian-security stretch/updates/contrib amd64 Packages [1,352 B]
Get:13 http://security.debian.org/debian-security stretch/updates/contrib Translation-en [1,023 B]
Get:14 http://security.debian.org stretch/updates/contrib amd64 Packages [1,352 B]
Get:15 http://security.debian.org stretch/updates/contrib Translation-en [1,023 B]
Get:16 http://security.debian.org stretch/updates/non-free amd64 Packages [1,272 B]
Get:17 http://security.debian.org stretch/updates/non-free Translation-en [481 B]
Get:18 http://deb.debian.org/debian stretch/non-free Translation-en [79.2 kB] 
Fetched 585 kB in 4s (120 kB/s)                                   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list:27
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list:27
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list:27
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list:27
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list:24
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list:24
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list:24
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list:24
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list:30
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list:30
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list:30
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list:30
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list:24
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list:24
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list:24
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list:24
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list:27
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list:27
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list:27
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:16 and /etc/apt/sources.list:27
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list:30
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list:30
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list:30
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list:30

what's wrong?
thanks
mrproxie
 
Posts: 1
Joined: 2017-10-10 05:17

Re: problem with sources.list

Postby dilberts_left_nut » 2017-10-10 06:18

Exactly what it says.
It even gives you the duplicate line numbers.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4658
Joined: 2009-10-05 07:54
Location: enzed

Re: problem with sources.list

Postby debiman » 2017-10-10 15:14

you get warnings, not errors. difference.

shouldn't debian-security be uncommented?
(not that it has anything to do with the "problem")
User avatar
debiman
 
Posts: 1305
Joined: 2013-03-12 07:18

Re: problem with sources.list

Postby RU55EL » 2017-10-11 03:46

Here is your sources.list file without the commented out entries:
Code: Select all
    deb  http://deb.debian.org/debian stretch main
   
    deb  http://deb.debian.org/debian stretch-updates main
   
    deb http://security.debian.org/ stretch/updates main
   
    ######

    deb  http://deb.debian.org/debian stretch main contrib non-free
   
    deb  http://deb.debian.org/debian stretch-updates main contrib non-free
   
    deb http://security.debian.org/ stretch/updates main contrib non-free


The first three entries are not needed. They are basically repeated in the last three entries with the addition of contrib and non-free.

The material at this link should help clarify. sources.list from Debian Wiki.
User avatar
RU55EL
 
Posts: 280
Joined: 2014-04-07 03:42
Location: /home/russel


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable