Fix apt-get install error "Media Change: please insert disk labeled".

What is this error?
This error is when you try to install something via apt-get and it asks you to insert a disk.

Why is this error bad?
This error is bad because what you are trying to install doesn't get installed and you can't bypass the insert CD message.

What does this error look like?
Media change: please insert the disc labeled
 'Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 CD Binary-1 20130504-14:44'
in the drive '/media/cdrom/' and press enter

Lets get this fixed for you real quick!

Step one: modify /etc/apt/sources.list

Run the command:

nano /etc/apt/sources.list

Now that we have the file open, all we do is add one character. Simply add a '#' before the line: deb cdrom:[Debian GNU/Linux 6.0.6 _Squeeze_ - Official amd64 CD Binary-1 20120929-16:46]/ squeeze main

Your file will now look like:

# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 CD Binary-1 20130504-14:44]/ wheezy main

deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main




Thats it! Save and close the file and you will no longer receive the CDRom error.
  • 5 Users Found This Useful
Was this answer helpful?