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.

I'm trying to upgrade from 10.04 to 10.10 and up. I am currently connected to the Internet. The last thing that I want to have to do is a fresh install since I dual boot the machine and I don't want to risk anything. Any suggestions or help would be greatly appreciated.

I have been getting the following error:

Could not download all repository indexes

The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.

Failed to fetch <http://us.archive.ubuntu.com/ubuntu/dists/karmic-backports/restricted/binary-i386/Packages.gz [and sources.gz]>  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch <see above>  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch <see above>  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch <see above>  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch <see above>  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch <see above>  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch <see above>  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch <see above>  404  Not Found [IP: 91.189.91.15 80]
Some index files failed to download, they have been ignored, or old ones used instead.
share|improve this question

2 Answers 2

up vote 1 down vote accepted

karmic vs lucid

Your error:

Failed to fetch <http://us.archive.ubuntu.com/ubuntu/dists/karmic-backports/restricted/binary-i386/Packages.gz [and sources.gz]> 404 Not Found [IP: 91.189.91.15 80]

This is preventing your package management system correctly updating. Karmic repositories no longer exist in the main launchpad repository area.

To resolve this first error you could use similar instructions as I described here:

i.e.

Comment out the offending karmic repository in /etc/apt/sources.list - that is, add # character to the start of the line to comment out the offending repository

gksu gedit /etc/apt/sources.list

enter image description here

Then ensure your package management system is OK:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Once you've confirmed this, you can then do a LTS to LTS upgrade - we've already got a great Q&A that describes this:

share|improve this answer
    
I would like to thank both of you for your input. With your suggestions, I have successfully managed to upgrade to 12.04. I sincerely appreciate your efforts. Thank you. –  Charles Gallagher Mar 9 '13 at 20:49

Personally I would recommend a full backup and fresh install. A lot has changed between 10.04 and 12.04 or 12.10 so a fresh install would be cleaner.

However since you don't want to do this. The problem is that 10.10 is not supported any more so you can it can not find the 10.10 files.

To fix this you need to upgrade to the next LTS version which is 12.04. To do this open "Update Manager" and click the "Settings Button". In the window that opens change "Notify me of a new Ubuntu version" to "For long-term support versions" instead of "For any new version".

You may need to reboot for this to take effect, but I'm not sure.

You can now upgrade directly to 12.04.

12.04 "Precise" is supported until April 2017 so I would stick with that but If you want to you can upgrade from there to 12.10.

Updates can go wrong so make sure you have good backups of both Windows and Ubuntu before updating

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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