Apt-get install asks for CD


apt-get install

Apt-get install asks for missing CD

If you are using apt-get install you have a Debian based linux distro. After a fresh and clean install of you linux you probably want to start installing your services and tools. And if linux then asks for a missing cd after trying to run apt-get install, it is because the install cd is listed as a repository in your sources.

It is quite easy to fix if you know about repositories and the source file. Use your favourite (or any other) text editor and open up /etc/apt/sources.list
Look for a line that looks something like this:
deb cdrom:[Debian GNU/Linux 8.4.0 _Jessie_ – Official amd64 NETINST Binary-1 20160402-14:42]/ jessie main

And use a # to comment it out, or just delete the line. If you use the net installer versions, they dont contain much more than the base system anyway. And you will kind of need an internet repository to install software packages.

You can now run apt-get update to update your repository sources. It should now download the software packages from internet when you run apt-get install. If you still have problems make sure you have the following lines, or at least main and updates repositories.

# Main
deb http://httpredir.debian.org/debian/ jessie main
deb-src http://httpredir.debian.org/debian/ jessie main

# Updates
deb http://httpredir.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ jessie-updates main contrib non-free

This example is taken from a Debian 8.4 installation.

That should be it for fixing the missing cd error when running apt-get install.
To get the best Debian based distro, try Debian here: https://www.debian.org/distrib/

If you are looking for a way to use a package proxy to save your own bandwidth and the repository hoster, check out my article about setting up your own apt-cacher her: http://soltveit.org/debian-install-package-proxy-using-apt-cacher/

Thats it for this time, and good luck fixing your repository.

Happy apt-get install !!!

Have any Question or Comment?

Leave a Reply