apt sources.list not complete

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

apt sources.list not complete

Postby markotitel » 2010-04-08 00:19

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?
markotitel
 
Posts: 26
Joined: 2010-04-07 13:02

Re: apt sources.list not complete

Postby Bulkley » 2010-04-08 00:36

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.
Bulkley
 
Posts: 5831
Joined: 2006-02-11 18:35

Re: apt sources.list not complete

Postby markotitel » 2010-04-08 01:22

ok thx for answering, but how come it wasnt by default in sources list?
markotitel
 
Posts: 26
Joined: 2010-04-07 13:02

Re: apt sources.list not complete

Postby bluesdog » 2010-04-08 02:01

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
User avatar
bluesdog
 
Posts: 2082
Joined: 2006-02-01 09:02
Location: Similkameen, British Columbia, Canada

Re: apt sources.list not complete

Postby Bulkley » 2010-04-08 02:10

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.
Bulkley
 
Posts: 5831
Joined: 2006-02-11 18:35

Re: apt sources.list not complete

Postby markotitel » 2010-04-08 12:38

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

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

Re: apt sources.list not complete

Postby bugsbunny » 2010-04-08 16:49

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.
User avatar
bugsbunny
 
Posts: 5355
Joined: 2008-07-06 17:04


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable