LKBEN11034: Howto stop a debian system to look for a CD by installation of packages


Symptom

You do not want to put the debian CD in the drive each time you install something

Cause

Wrong configuration in /etc/apt/sources.list

Solution

Under debian this is very easy. You just need to change the file /etc/apt/sources.list and remark one line.

The file on debian etch looks like:



#
# deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official amd64 CD Binary-1 20080803-21:56]/ etch contrib main

deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official amd64 CD Binary-1 20080803-21:56]/ etch contrib main

deb http://ftp.de.debian.org/debian/ etch main
deb-src http://ftp.de.debian.org/debian/ etch main

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


The only thing you need to do is add a # in front of the "deb cdrom" line with your favorite editor. I normally use vim to do this.

So the result will be:


#
# deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official amd64 CD Binary-1 20080803-21:56]/ etch contrib main

#deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official amd64 CD Binary-1 20080803-21:56]/ etch contrib main

deb http://ftp.de.debian.org/debian/ etch main
deb-src http://ftp.de.debian.org/debian/ etch main

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

 


 

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.