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

 

 

 

problem with sources.list

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
mrproxie
Posts: 1
Joined: 2017-10-10 05:17

problem with sources.list

#1 Post by mrproxie »

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

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: problem with sources.list

#2 Post by dilberts_left_nut »

Exactly what it says.
It even gives you the duplicate line numbers.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: problem with sources.list

#3 Post by debiman »

you get warnings, not errors. difference.

shouldn't debian-security be uncommented?
(not that it has anything to do with the "problem")

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: problem with sources.list

#4 Post by RU55EL »

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.

Post Reply