Ubuntu requires CD for software (installs and updates)

If when attempting to update software or install new software in Ubuntu you find yourself being asked to insert the installation/live CD or if you find the following errors while trying to update your sources the following should help fix this error.

W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognised by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognised by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/restricted/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognised by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/restricted/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognised by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download. They have been ignored, or old ones used instead.

In order to fix this you’ll need to open up a terminal and type:

 sudo nano /etc/apt/sources.list 

Now you’ll see something similar to the following:

From here add a # to any lines starting with “deb cdrom:” then save and exit nano (Ctrl+X, Y, Enter).

Now from terminal type:

 sudo apt-get update 

You should now be able to install and update all the things without the need for a CD being mounted.

4 comments to Ubuntu requires CD for software (installs and updates)

  • new2ubuntu

    Very nice tip, worked wonders for me.
    Thank-you :)

  • Looking to finally make the switch to Ubuntu 11.10 and i had a few questions.

    1. I was going to transfer all my files (songs, docs, pictures, videos, ect) to an external HDD. What would happen to WMA files? Would they work in Linux? Or any Windows Media files? I have over 3,000 songs all perfectly organized i don’t want to lose any of their labeling or organization.

    2. Would i lose functionality of all the stock lighting that came on the laptop? IE the power, network, charging, ect indicators.

    3. If somebody could go into a little more detail on partitioning windows that would help, im having a hard time understanding it.

    4. Any helpful tips or hints would also be appreciated

    Thanks in advance

  • Thanks for the comment,

    Firstly, my advice for anyone who wants to switch to or even try Ubuntu is to test out using the LiveCD or alternatively try a LiveUSB if you have a spare one floating around.

    However your other questions:

    1. Yes, WMA should work, along with all tags and labeling (assuming you’re referring ID3 tags and folder layout hierarchy)

    2. Linux comes with it’s own power, network, charging indicators. If you’re referring to some proprietary software that came with your laptop, this most likely won’t work since it’s a windows application.

    3. Partitioning isn’t as scary as everyone makes it, especially these days. That said, I would still backup all your important documents on that external HDD and possibly Dropbox (or any other free online service).

    a. Download and burn a ubuntu image to disc
    b. Insert the disc and boot your computer from the disc
    c. Try out ubuntu, besides a slower speed (due to reading the CD), this is actually what you’re going to be using!
    d. Open a terminal and type: sudo apt-get install gparted
    e. Once installed, from the same terminal window type: sudo gparted
    f. Resize the partition on the hard drive you want to install Ubuntu, the renaming free empty space you have is where you’re going to install it. Once you’ve got enough room for the install, save the changes and exit the program when it’s done.
    g. Once that’s done, continue with the install, select the option to install ubuntu in “the largest continue free space” or something similar. If it’s not there, STOP and get some advice if you’re unsure of what you’re doing.

    4. After Googleing, the best places for Ubuntu advice are: Ubuntu Forums reddit.com/r/ubuntu and check out OMG! Ubuntu! for news.

    If you don’t like the desktop environment, there are loads of others to try so don’t be put off! Try KDE, XFCE, LXDE, Gnome 3 and many others.

    Learn how to install packages and some simple command line commands, it’s not essential with the addition of the Software Centre but it’s sometimes cool and useful.

  • Fazliddin

    Very nice tip for whom wants to download packages. But I want to install packages from my Debian Squeeze DVD and I get same error “can not fetch cdrom”

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>