Prevent Ubuntu asking for the CD to install packages

Recent releases of Ubuntu have a feature where the installation CD can be used as a repository for installing software, just like any repository on the web.

The advantage of this, obviously, is it means that you can save bandwidth for some packages that haven't been updated since the release, or even sometimes be able to install new packages without an internet connection at all. The main disadvantage - the CD has to be in the drive.

And when you get asked for that CD when installing something, and you really don't feel like finding it on your messy desk, or wherever it's hiding, it can be frustrating.

Thankfully, it's pretty easy to switch off the support for installing from the CD. In Ubuntu (the normal Gnome version), go to System > Administration > Software Sources. On Kubuntu, head to the Adept Manager application, then go to Adept > Manage Repositories.

In both cases, you'll get a dialogue looking something like this. Go to the Third Party Software tab.

Software Sources dialogue screenshot

In there, simply untick the entry starting with cdrom: (the top one in my screenshot) and close. You might be asked to reload the software lists, so do so.

And that's it. The CD should be disabled, and you'll always go online to download new packages.

Avatar for peter Peter Upfold - http://peter.upfold.org.uk/

Peter Upfold is a technology enthusiast from the UK. Peter’s interest in Linux stems back to 2003, when curiosity got the better of him and he began using SUSE 9.0. Now he runs Linux Mint 9 on the desktop, runs a CentOS-based web server from home for his personal website and dabbles in all sorts of technology things across the Windows, Mac and open source worlds.

Home » Articles »

Discussion: Prevent Ubuntu asking for the CD to install packages

  1. # Posted on 29 December 2007 at 01:45 AM

    <strong>Story added...</strong>

    Your story has been submitted to fsdaily.com! Come and promote your article by voting for it here on FSDaily! Let your readers know they can vote for your story too....



  2. # Posted on 08 January 2008 at 05:33 PM

    [...] FOSSwire » Prevent Ubuntu asking for the CD to install packages And when you get asked for that CD when installing something, and you really don’t feel like finding it on your messy desk, or wherever it’s hiding, it can be frustrating. (tags: howto linux tools ubuntu system annoyances) [...]



  3. # Posted on 16 January 2008 at 09:28 AM

    [...] for it when installing software and such. Lifehacker recently listed instructions (derived from FOSSwire) on how to disable this [...]



  4. Helge (guest)

    # Posted on 03 October 2008 at 09:32 AM

    Another way of doing the same is to comment out the reference to the cd in /etc/apt/sources.list



Home » Articles » Prevent Ubuntu asking for the CD to install packages

Sign In