Last Updated on 2021-10-24 by Clay
Today I reinstalled Debian that is a famous Linux distribution, but I got an warning to remind me the device cannot detect the Wifi device in installation… I always encountered some new problem every time I install the system.
It skip the graphic interface and some softwares installation, just configure the GRUB boot program and reboot.
Then I just can use the plain text command line interface.
The following error appeared while I want to use apt
command to install KDE for emergency.
Media change: please insert the disc labeled ...
After searching, I found that is apt
command to search for a package from CDROM. I opened /etc/apt/sources.list and it is almost empty, only that line was deb chrom
.
There are two solutions:
- Comment out the
deb chrom
(If you no need to install package from your disk or USB device) - Mount the bootable disk or bootable USB device
Mount USB device
The method of comment out is very easy, so I won’t explain it in here.
The following explains how to mount the USB boot device, so that we can use the apt
command to install package.
First we can use lsblk
to find which /dev/sdx is your device. In here we call it /dev/sdx1.
You can mount it on /media/cdrom directory.
sudo mount /dev/sdx1 /media/cdrom
In this time, you can use apt
command to install package from usb boot device.
References
- https://linuxconfig.org/howto-mount-usb-drive-in-linux
- https://askubuntu.com/questions/386265/media-change-please-insert-the-disc-labeled-when-trying-to-install-ruby-on-ra
- https://my.velocihost.net/knowledgebase/29/Fix-the-apt-get-install-error-Media-change-please-insert-the-disc-labeled-…-on-your-Linux-VPS.html