Posted in All Other Stuff

Remove CD-ROM from apt-get repositories Debian 6

I noticed that Debian 6 uses the media in the CD-ROM when using the “apt-get” utility.
The following message comes up when attempting to install or update a program using apt-get:

Media change: please insert the disc labeled
‘Debian GNU/Linux 6.0.0 _Squeeze_ – Official i386 DVD Binary-1 20110205-17:27’
in the drive ‘/media/cdrom/’ and press enter

The fix is easy. We need to remove the CD-ROM as a source for apt-get.
To do this, edit the following file: /etc/apt/sources.list

Comment or delete the line for the CD-ROM, save the changes, and try apt-get again.
This time, it should use the online repositories.

Advertisements

23 thoughts on “Remove CD-ROM from apt-get repositories Debian 6

  1. Compartiste precisamente la información que andaba buscando … Gracias!

    “You shared the exact information i was looking for… Thanks! “

  2. Thank you very much. There’s probably a signal that apt-get will catch that will let it skip the cd repo if you want to keep the cd as an option. Ctrl-C? It’s interesting that you can use an iso as a repository, I wonder if yum can do that as well.

    1. You need to run this as root and will need to use “sudo” in front of the command.
      Try this if you’re using nano as your editor:
      # sudo nano /etc/apt/sources.list

      Then edit the file and save.

  3. I just wanna know how to get out of it

    Media change: please insert the disc labeled
    ‘Debian GNU/Linux 7.9.0 _Wheezy_ – Official amd64 DVD Binary-1 20150905-14:38’
    in the drive ‘/media/cdrom/’ and press enter

    Media change: please insert the disc labeled
    ‘Debian GNU/Linux 7.9.0 _Wheezy_ – Official amd64 DVD Binary-1 20150905-14:38’
    in the drive ‘/media/cdrom/’ and press enter

    what can I do if I wanna go on cancel or something out of this

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s