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

About Author

Related Posts

php8 gd

PHP8 gd Activate after installation

PHP8 GD activate after installation. GD doesn’t get activated by default. Not even a reboot after installation will activate it. So how do we do it? In…

Debian 12: linux-image-6.1.0-10amd64

Troubleshooting dependency issues in Debian 12: Resolving linux-image-6.1.0-10amd64 package dependency problems. If you installed the Debian 12 from the live image the issue is the raspi-firmware. Even…

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…

Leave a Reply