0

Possible Duplicate:
How can I fix a 404 Error using a PPA?

When I run sudo apt-get update && sudo apt-get dist-upgrade, I get the following:

W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (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 cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)/dists/oneiric/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

W: Failed to fetch http://ppa.launchpad.net/openjdk/ppa/ubuntu/dists/oneiric/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/openjdk/ppa/ubuntu/dists/oneiric/main/binary-i386/Packages  404  Not Found

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

1 Answers1

1

You need to fix your sources.list file. Try opening the terminal Ctrl+Alt+T. Next type sudo gedit sources.list . The sources list will pop-up. Remove the ones listed which appear to no longer be valid. You'll also need to edit the entries in /etc/apt/sources.list.d . To edit these you can type sudo nautilus to open the file browser as root and delete the ppa's listed in the errors above. Replace with actual valid sources and save. Run the update command to refresh and get the updates.