Results 1 to 3 of 3
-
11-23-2013, 12:18 PM #1Disabled
- Join Date
- Oct 2012
- Location
- Miami, FL
- Posts
- 538
Fix the apt-get install error: “Media change: please insert the disc labeled ...”
Introduction
------------
In order to avoid Debian to search for packages on a non-existent CDROM, which is most likely not present on a VPS, you should change a simple parameter on the /etc/apt/sources.list file. You need to modify the aforementioned file if you get an output like this while using apt-get to install default packages:
Code: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
Code:vi /etc/apt/sources.list
Code:# 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 ~
This file contains all your package sources. You might find a deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 CD Binary-1 20130504-14:44]/ wheezy main line indicating a local CDROM as a package source. Comment it out by placing a # symbol at the beginning of the line and save the file.
You should leave it like this:
Code:# # 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 ~
Now that you have fixed the apt-get CDROM error, you are ready to resynchronize the package index files and install your services on Debian.
Enjoy!
-
11-30-2013, 07:07 PM #2Newbie
- Join Date
- Nov 2013
- Posts
- 11
Cool thanks. Good information here, had this happen on one of our VPS's that didn't have local repo's setup automatically like most do
-
12-12-2013, 10:36 PM #3WHT Addict
- Join Date
- Jul 2010
- Posts
- 106
Just what I need. Cheers mate!
-none-
Similar Threads
-
How to install software when there are no apt-get, dpkg, dselect
By LiuJia in forum Hosting Security and TechnologyReplies: 5Last Post: 06-16-2008, 12:34 PM -
3.1R1 Debian 2.4 kernel, apt-get install segfault
By TechMicheal in forum Hosting Security and TechnologyReplies: 1Last Post: 04-16-2006, 04:46 PM -
how do i install apt-get on centos 3.4?
By mouseattack in forum Hosting Security and TechnologyReplies: 3Last Post: 08-07-2005, 01:00 PM -
Apt-get Error on Debian
By smsmasters in forum Dedicated ServerReplies: 6Last Post: 03-30-2005, 04:50 PM -
Kernel upgradation failed !! apt-get error :/bin/rpm error:sgementation fault
By atul in forum Hosting Security and TechnologyReplies: 1Last Post: 06-23-2004, 08:13 AM