Mengatasi error “Media change: please insert the disc labeled” di Debian 11

error ini terjadi dikarenakan Drive tidak dalam posisi di attach dalam sistem saat proses penginstallan atau update dependency berlangsung seperti di bawah ini.

root@firmanprtama:/home/firmanprtama# apt-get install bind9 bind9utils bind9-doc dnsutils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  bind9-utils dns-root-data python3-ply
Suggested packages:
  bind-doc resolvconf ufw python-ply-doc
The following NEW packages will be installed:
  bind9 bind9-doc bind9-utils bind9utils dns-root-data dnsutils python3-ply
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,644 kB of archives.
After this operation, 11.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Media change: please insert the disc labeled
 'Debian GNU/Linux 11.1.0 _Bullseye_ - Official amd64 DVD Binary-1 20211009-10:08'
in the drive '/media/cdrom/' and press [Enter]
^C
root@firmanprtama:/home/firmanprtama#

Untuk mengatasi error di atas pada Debian 11 adalah sebagai berikut.

Login root & Edit file sources.list di dalam folder /etc/apt/

firmanprtama@firmanprtama:~$ su
Password:
root@firmanprtama:/home/firmanprtama# nano /etc/apt/sources.list

Hapus baris atau comment baris di bawah ini

deb cdrom:[Debian GNU/Linux 11.1.0 _Bullseye_ - Official amd64 DVD Binary-1 20211009-10:08]/ bullseye contrib main

Cara 1 Hapus

Cara 2 Comment

Langkah terakhir save file sources.list

ctrl + x > Y > enter

Leave a Reply

Your email address will not be published. Required fields are marked *