LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Sources.list after cd installation (https://www.linuxquestions.org/questions/debian-26/sources-list-after-cd-installation-743102/)

Davide82 07-27-2009 10:01 AM

Sources.list after cd installation
 
Hi!
I am a newbie debian user.
I just installed Debian lenny from cd iso. A minimal installation w/ default settings.
Then I wanted to install the motion detection package "motion" (quite common and official!).

Here http://www.debian-administration.org/articles/347 people stay: "we now have an easy-to-install motion package right in the main repositories."
So I believed it should be straightforwardlly installed w/ "apt-get"...
But it says "couldn't find package motion".

Strange isn't it?
What should I do?
Of course something is missing in sources.list, but what is missing?
I want only stable repository; not unstable/testing.

The package is even here: http://packages.debian.org/stable/graphics/motion

So why after the installation I don't have a useful sources.list??

Thank you all.



#
# deb cdrom:[Debian GNU/Linux 5.0.2 _Lenny_ - Official i386 CD Binary-1 20090628-14:43]/ lenny main

deb cdrom:[Debian GNU/Linux 5.0.2 _Lenny_ - Official i386 CD Binary-1 20090628-14:43]/ lenny main

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

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

amani 07-27-2009 10:27 AM

http://www.debian.org/doc/FAQ/ch-get...s-updatestable

the trooper 07-27-2009 10:31 AM

Quote:

Of course something is missing in sources.list, but what is missing?
You only have the security and the volatile repo's active.
Make your sources list look something like this:

Code:

#
# deb cdrom:[Debian GNU/Linux 5.0.2 _Lenny_ - Official i386 CD Binary-1 20090628-14:43]/ lenny main

#deb cdrom:[Debian GNU/Linux 5.0.2 _Lenny_ - Official i386 CD Binary-1 20090628-14:43]/ lenny main

deb http://ftp.uk.debian.org/debian/ lenny main
deb-src http://ftp.uk.debian.org/debian/ lenny main

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

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

Notice that i have commented out the cd entry.
Obviously you can change uk to a more suitable entry if you wish.

Then simply:

aptitude update

Make sure you have no error messages,then:

aptitude install motion

Davide82 07-27-2009 10:32 AM

Yes, but i wasn't bothering whether packages were updated or not, but I say WHY there isn't a useful sources.list after installation w/ AT LEAST the official repository?

I know there are many many exotic repository, but I'm simply trying to install an official package listed on the official site!!!

People shout about how apt-get is exeptional... but why isn't sources.list usable??

amani 07-27-2009 10:35 AM

They expect people using the minimal install image to know enough.

Davide82 07-27-2009 10:40 AM

what is the advantage of avoiding a line with the repository???
Is this exciting?

the trooper 07-27-2009 10:40 AM

Quote:

Yes, but i wasn't bothering whether packages where updated or not, but I say WHY there isn't a useful sources.list after installation w/ AT LEAST the official repository?
You need to run aptitude update after modifying /etc/apt/sources.list.
Why it's not there and working i can't say.I wasn't there when you did the install.

Quote:

I know there are many many exotic repository, but I'm simply trying to install an official package listed on the official site!!!
And i've given you an example of an official repo.

Quote:

People shout about how apt-get is exeptional... but why isn't sources.list usable??
Apt is an exceptional package manager.It just takes a little effort to learn.

Davide82 07-27-2009 10:46 AM

Ok, I didn't say thank you to have given to me the url of the repository.
So thank you! Sorry if I didn't do it before!
I know how apt works: I know I have to write source.list and after do an update.
I was simply trying to understand why they decided to avoid the official repository in the install.
At least they could leave a line commented! Don't you think?
Indeed I installed with default settings.

the trooper 07-27-2009 10:53 AM

Quote:

I was simply trying to understand why they decided to avoid the official repository in the install
They probably didn't.
You probably made the wrong choice during the installation.
Don't sweat it.It's easily rectified.
Edit the file,update.Then install.
Job done.

amani 07-27-2009 10:56 AM

Argue with the people on
http://lists.debian.org/debian-policy/
or
http://lists.debian.org/debian-qa/

the trooper 07-27-2009 11:17 AM

So have you got the package you wanted installed?

Davide82 07-27-2009 11:20 AM

Yes, yes!
Thank you

the trooper 07-27-2009 11:23 AM

It would be useful to use the thread tools,and mark this thread solved.
Also feel free to click the 'thumbs up' if you think we have helped you.


All times are GMT -5. The time now is 10:03 AM.