Apt-get install asks for CD

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 !!!

Related Posts

4 Best Free Nas Software That Is Open Source

Free NAS software or operating systems that are free to use and will turn a computer into a NAS more advanced than the dedicated boxes sold. What…

Raspbian default password

Raspbian default password

Looking for the Raspbian default password? It is the most essential username and password that you will need for your raspberry. At least if you are running…

OpenMediaVault default password

OpenMediaVault default password

OpenMediaVault default password is printed in the documentation. I did not see it the first time I installed it either. So I had to do some detective…

Debian change dns

Debian change DNS settings to a new DNS

Debian change DNS settings for speed improvement or privacy. It is really easy to do. So let us see how it’s done and get to it. The…

Upgrade debian 9 to debian 10

Upgrade Debian 9 to Debian 10

Upgrade Debian 9 to Debian 10 is very similar to upgrading previous versions. The only you need to do is change the sources to Buster instead of…

Debian 10 Static IP

Debian 10 Static IP

Debian 10 static IP works just like the previous version. They changed the naming of the network interfaces in Debian 9. However if you have upgraded from…

Leave a Reply