I am trying to do boot-repair using try Ubuntu from live disc. I need to do apt commands, however I keep getting:
Media change: please insert the disc labeled
'Ubuntu 21.04 _Hirsute Hippo_ - Release amd64 (20210420)'
in the drive '/cdrom/' and press [Enter]
I have seen a solution about removing cdrom entries from /etc/apt/sources.list
, so I did. Now my lists are only 4 active entries, none is cdrom:
ubuntu@ubuntu:~$ grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ hirsute main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ hirsute-security main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu/ hirsute-updates main restricted
/etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-hirsute.list:deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/ hirsute main
/etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-hirsute.list:# deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/ hirsute main
I have also checked UI to make sure that option to use CD is NOT selected
and I have done sudo apt-get update
multiple times, however I keep getting the same error. Do you know how to remove this error message? Or is it impossible to get rid of on live version?
The command I am trying to run is:
sudo chroot "/mnt/boot-sav/sdb5" apt-get purge --allow-remove-essential -y grub*-common shim-signed