Fix Media change: please insert the disc labeled error in Debian 9


Today we are looking at one of the most common errors a person can get after installing Debian 9 and that is that a person can't install packages as the DVD/USB which a person used to install Debian, tends to be added as a software source on your system and when a person removes the installation device from your system, it remains as a software source for your pc and your system is looking for it.

In this video, we look at how to fix this by editing the source file, by just putting a # tag in front of the lines which is the source of the USB installation data.  A # tag disables that line, you will see the difference, but if you put it in front of the wrong line, you can always remove it again, that is the # tag.

As Debian comes with different desktop environments and different software source managers, I used a method that will work on each system, if it is a bit too difficult, let me know and I will try to assist you.  Enjoy and good luck!

Ps. Just don't delete or remove any files or lines...

About the commands, the first gives you root access to your system so that you can edit the file, sudo is turned off by default and the next command will open the document in nano, you can replace nano with any text editor installed on your system and it should also work.

Commands used:
su -
nano /etc/apt/sources.list

to close a nano file after editing it, press "ctrl and x" together and "y" to confirm the changes after it.

Give your user sudo privileges
https://www.linuxmadesimple.info/2018/11/how-to-enable-sudo-on-user-account-in-debian9.html

Do you need remote help, setting up your system, installing programs or general troubleshooting?  Hire me on Upwork! Click here!

Subscribe to our weekly Linux Round-Up: SUBSCRIBE


For a video with Voice-Overs look here: https://youtu.be/VWwKMiEYh78

Curios about Chromebooks have a look at our Chromebook Comparison Chart!

Want to buy us a cup of coffee, thank you!

Do you want an ad-free, secure web experience, that pays you?  Look here for more information!

Follow us on Facebook:  https://www.facebook.com/linuxmadesimple

Comments