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

 

 

 

apt sources.list not complete

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
markotitel
Posts: 26
Joined: 2010-04-07 13:02

apt sources.list not complete

#1 Post by markotitel »

hello, today i finished my first debian lenny install. x86 version. i ran into problem with sources.list
#
deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official i386 CD Binary-1 20100131-18:53]/ lenny main

deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official i386 CD Binary-1 20100131-18:53]/ lenny main


# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ lenny/updates main
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/ lenny/updates main

# Line commented out by installer because it failed to verify:
#deb http://volatile.debian.org/debian-volatile lenny/volatile main
# Line commented out by installer because it failed to verify:
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
ok i uncommented deb http lines and coment out CDROM lines, but I dont see main pool for packages, I tried to install some basic stuff like MC , audio player but not in the list aptitude could not find anything. Help?

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: apt sources.list not complete

#2 Post by Bulkley »

You need something like this: Since you have Lenny, change all the "testing" to "stable." If you want non-free, remove the # in the first line.

markotitel
Posts: 26
Joined: 2010-04-07 13:02

Re: apt sources.list not complete

#3 Post by markotitel »

ok thx for answering, but how come it wasnt by default in sources list?

User avatar
bluesdog
Posts: 2077
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada
Been thanked: 1 time

Re: apt sources.list not complete

#4 Post by bluesdog »

A lot depends on how you did the install -- default or expert, and how you answered the question regarding using a mirror.

As for your working /etc/apt/sources.list, I suggest you practise using named repositories, rather than the generic terms 'stable', 'testing' or 'unstable'

Currently Lenny is the stable release, however when Squeeze becomes stable, those with the generic terms in /etc/apt/sources.list may be in for a bit of a bumpy ride..

From one of my standard boxes, running Squeeze (testing):

Code: Select all

cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot i386 kde-CD Binary-1 20091019-06:48]/ squeeze main

# deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot i386 kde-CD Binary-1 20091019-06:48]/ squeeze main

deb http://ftp.uk.debian.org/debian/ squeeze main non-free contrib
deb-src http://ftp.uk.debian.org/debian/ squeeze main non-free contrib

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

deb http://www.debian-multimedia.org/ squeeze main non-free
deb-src http://www.debian-multimedia.org/ squeeze main non-free

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: apt sources.list not complete

#5 Post by Bulkley »

As for your working /etc/apt/sources.list, I suggest you practise using named repositories, rather than the generic terms 'stable', 'testing' or 'unstable'
Pay attention to bluesdog. He's right.

markotitel
Posts: 26
Joined: 2010-04-07 13:02

Re: apt sources.list not complete

#6 Post by markotitel »

Thank you very much, during installation I did not use internet so thats why I did not have main repo.

thank you

User avatar
bugsbunny
Posts: 5354
Joined: 2008-07-06 17:04
Been thanked: 1 time

Re: apt sources.list not complete

#7 Post by bugsbunny »

Bulkley wrote:
As for your working /etc/apt/sources.list, I suggest you practise using named repositories, rather than the generic terms 'stable', 'testing' or 'unstable'
Pay attention to bluesdog. He's right.
sid is always unstable so that doesn't matter one way or the other. If you're running stable then using the name rather than the generic term is absolutely the better way to go. It will prevent unpleasant surprises/problems when squeeze eventually goes stable.

If you're running testing it depends. If you want to continue running it as a rolling release then using "testing" rather than "squeeze" is probably the better option. If you plan to transition to squeeze once it goes stable (either permanently or temporarily) then you should use the named version.

Post Reply