24

When updating I got this error message:

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 recognized by APT. apt-get update cannot be used to add new CD-ROMs
W:Failed to fetch http://ppa.launchpad.net/synce/ubuntu/dists/your_ubuntu_version/main/source/Sources  404  Not Found

What to do?

0

8 Answers 8

29

Run "Software & Updates" and uncheck checkbox near "Cdrom with Ubuntu" enter image description here

1
  • 1
    The name of the tool is Software & Updates nowadays. Apr 1, 2016 at 23:09
17

The issue here is that your OS is looking for CD-ROM in the apt sources list. To fix this:

sudo vi /etc/apt/sources.list

Remove any lines that include CD-ROM. Save the file and try once more.

4
  • Thanks just going to try it, so far only found one line with cd-rom in it is. deb cdrom:[Ubuntu 11.10 Oneiric Ocelot - Release i386 (20111012)]/ oneiric main restricted
    – Mattlinux1
    Apr 9, 2012 at 23:33
  • 1
    Yep, you can either remove it or comment it out by placing a # at the beginning of the line.
    – rwc
    Apr 9, 2012 at 23:35
  • Done Thanks man, its now saying its updated. :)
    – Mattlinux1
    Apr 9, 2012 at 23:37
  • Thank goodness I'm not the only one using the command line. I commented out the line, after which I was able to run apt-get update and then apt-get install php5-dev. Thank you. Here's some documentation: help.ubuntu.com/community/Repositories/CommandLine Oct 6, 2015 at 2:43
8

The W: lines are warnings. The first one is because you still have your install CD (the one you used to install Ubuntu in the first place) listed as a possible software source, but it is not in your drive at this time (reasonable, ignore it). The second is because you have copied a URL (web address) verbatim and not changed your_ubuntu_version to the name of your Ubuntu version. It should read http://ppa.launchpad.net/synce/ubuntu/dists/oneiric/main/source/Sources instead, since you're using Oneiric Ocelot (11.10).

You can access Software Sources through the Ubuntu Software Centre to make changes to your source lists - https://help.ubuntu.com/community/Repositories/Ubuntu#Adding_Repositories_in_Ubuntu

6

It is trying to use the repositories on the CD you used to install Ubuntu but cannot access them (potentially because the CD is not in the drive). Assuming that you have an internet connection that you can use for installing new software (and updates) you can safely disable the repositories on the CD.

To do so:

Hit Alt+F2 then type gksudo software-properties-gtk and enter your password in the dialogue that comes up.

Now in the window that comes up you should be able to disable using the cdrom repositories by unchecking them in either the bottom of the "Ubuntu Software tab" or in the "Other software tab" (most likely in the former location). Hope this helps.

3

Maybe you should have a look at this link Basically what you need to do is open software center, go to edit> sources and uncheck cd rom from there

3

You have selected the CD-ROM as software sources, so it is checking the CD-ROM for the source.

To uncheck CD-ROM option go-to:

  1. system settings

  2. software sources

  3. other software

  4. uncheck CD-ROM option.

This will solve your problem.

0

Sounds to me like you have your update manager looking for updates on the installation CD. I would suggest installing Synaptic if it's not already installed and then using that to take a look at your software sources.

sudo apt-get install synaptic

then Load Synaptic Look for Settings > Repositories in the menu.

Go to the Other Software tab and make sure cdrom is not 'checked'. You may also want to uncheck the items in that list for Skype. Then close that window, and hit the Reload button in Synaptic

2
0

Removing the CDROM from repositories should solve the problem (since apt-get is trying to read from cdrom which is not there). Just go to System->Administration->Software Sources and uncheck CDROM...

Now, this is the solution if you want to upgrade packages over the Internet. I don't yet know the solution for actually upgrading from CD (I just know you should run apt-cdrom add after inserting a CD with a newer Ubuntu version, but it seems apt-get upgrade ignores the CD) - someone else could help with this...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .