April 14, 2008
APT-GET Looking for Ubuntu Installation Disc
Tags: Ubuntu, APT-GET, installation, disc, cdrom, new programs,
I ran into this a while ago and somehow got around it. Let’s say you are installing a new program via the command line. Something like:
sudo apt-get install whatever
Then Ubuntu responds with:
Do you want to continue [Y/n]? y
Media change: please insert the disc labeled
'Ubuntu version_ - Release i386'
in the drive '/cdrom/' and press enter
If you put in the install CD it will run and install just fine even though it isn’t using anything off of the actual disc.
Over at the Ubuntu Forums robglinka had the perfect solution for getting Ubuntu to not look at the CD drive for installers. All you need to do is go to your /etc/apt/ directory and find the file called sources.list. Comment out (with the ‘#’ sign) the line(s) that says deb cdrom: so that apt-get won’t look there anymore and voila, you should be good to go.