Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
Failed to download repository information due to missing CDROM

I have an 11.04 machine, and I'd like to upgrade to 12.04. I'm using the Update Manager to do so. It gets to the "Setting new software channels" step when I get this error:

Error during update

The complete description is:

W:Failed to fetch cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)/dists/precise/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 cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)/dists/precise/restricted/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
, E:Some index files failed to download. They have been ignored, or old ones used instead.

What do I do?

share|improve this question

marked as duplicate by jokerdino, LnxSlck, Anwar Shah, Jorge Castro, hexafraction Sep 21 '12 at 19:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
before you carry on! - please confirm that you have first upgraded to 11.10 before upgrading to 12.04... –  fossfreedom Apr 27 '12 at 14:11
add comment

4 Answers 4

up vote 1 down vote accepted

Try this
Run in terminal:

gksudo gedit /etc/apt/sources.list

there are the top few lines referencing the CD, add a hash character at the start to make them comments, save the new file and close gedit. A hash character is a '#'

Now try updating Is it smooth?

share|improve this answer
    
That was the problem :) –  notfed Apr 28 '12 at 0:37
add comment

Try this from a Terminal:

sudo do-release-upgrade
share|improve this answer
add comment

this will help you https://help.ubuntu.com/community/UpgradeNotes and this will help you https://help.ubuntu.com/community/OneiricUpgrades

You cant directly upgrade from ubuntu 11.04(Oneiric Ocelot) to Ubuntu 12.04(Precise Pangolin). First you will have to upgrade to 11.10 then only you can do the upgrade. If you want to upgrade, then follow the instruction in those urls. Always read release notes before upgrading. https://wiki.ubuntu.com/PrecisePangolin/ReleaseNotes/UbuntuDesktop

share|improve this answer
add comment

From what I have seen you can only update to 12.04 from 10.04 which is the previous LTS or from 11.10 which is the previous Ubuntu version.

You would have to update from 11.04 to 11.10 and then to 12.04 or download/install the CD/DVD/USB of 12.04.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.