Installation Apt Package Management – How to Remove CD/DVD Install Source for Apt-Get Packages

aptinstallationpackage-management

I'm running a Ubuntu server (9.0.4 'Jaunty') as a VMware image.

It's a real pain on the odd occasion I need to install a new package to have to fish out the install CD-ROM, and make it available to the VMware image so I can continue the package install.

Is there any way to take the original installation media out of the list of source packages – I'm assuming all packages will be available on the internet.

Thanks.

Best Answer

Yes, you can remove the CD-ROM (or or original installation media) from the sources.list

Edit the sources.list file with the following command:

sudo nano /etc/apt/sources.list

And near the top, comment out the line that looks like this:

deb cdrom:[Ubuntu-Server 9.04 _Jaunty Jackalope_ - Release i386 (20090421.1)]/ jaunty main restricted

(comment is a hash (#) - so pop one of these at the start of the deb cdrom: ... line)

Press Ctrl+X to exit the nano text editor, pressing y to save your changes

Then finally you'll need to run:

sudo apt-get update

To update your package lists.

Related Question