Devuan apt-get installer asking to insert installation disc - Solution [with screenshots]

Written by Administrator on Wednesday April 22, 2020

You've fresh installation of Devuan and trying to install package, but system is asking for installation media?

Media change: please insert the disc labeled
 'Devuan GNU/Linux 2.1 (ascii) amd64 DVD1 - 2019-12-21 07:24:54 UTC'
in the drive '/media/cdrom/' and press [Enter]

If you continue to click buttons in terminal, system will start downloading packages from repositories, because in your /etc/apt/sources.list file, where all installation media (and their priorities) internet repositories are present as well.

But in case you want Devuan to not ask you for installation media every time, you can edit sources file this way:

Let's open sources.list file as root with nano text editor.

$ sudo nano /etc/apt/sources.list

(or you can use vim text editor as well, but in fresh Devuan installation system nano is pre-installed and vim - not):

$ sudo vim /etc/apt/sources.list

You will see this:

And comment the line with a hash:

deb cdrom:[Devuan GNU/Linux 2.1 (ascii) amd64 DVD1 - 2019-12-21 07:24:54 UTC]/ ascii contrib main non-free

You you will have deactivated cdrom as a media: put "#" sign before the every line, starting "deb cdrom ...".

Then press Ctrl+X on keyboard to exit the file. After that program will ask you, if you want to save changes:

Save modified buffer?  (Answering "No" will DISCARD changes.)                                                 
 Y Yes
 N No           ^C Cancel

Type "Y" and file will be saved with your modifications. Now source.list file looks like this:

What we did: we commented (deactivated) installation source media (cdrom), it means next time Devuan will not ask you for DVD or CD while installing new package.

Category: linux Tags: devuan install nano apt-get