Upgrade via Update manager failed

Asked by alviks

Binary package hint: firefox

1. Release: 7.04

2. When I try to check the package name in Synaptic, all I get is "Could not download all repository indexes", so I'm not sure about the release (I am pretty new to Ubuntu and Linux)
3, 4. I have had some crashes lately, so I want to upgrade to 7.10 or higher from 7.04. When I try tu update via Update manager, it fails and I am prompted to report this as a bug and to include the files in "/var/log/dist", which in my case is "/var/log/dist-upgrade" , where 3 files are stored. I dont know how to attach 3 files so I pick just one of them, created today. Let me know if you ned the other 2 as well. Thanks and regards
Allan

ProblemType: Bug
Architecture: i386
Date: Tue Apr 14 19:02:49 2009
DistroRelease: Ubuntu 7.04
Package: firefox 2.0.0.17+0nobinonly-0ubuntu0.7.4
PackageArchitecture: i386
SourcePackage: firefox
Uname: Linux ubuntu-desktop 2.6.20-17-generic #2 SMP Wed Aug 20 16:47:34 UTC 2008 i686 GNU/Linux

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu firefox Edit question
Assignee:
No assignee Edit question
Solved by:
Cruncher
Solved:
Last query:
Last reply:

This question was originally filed as bug #361219.

Revision history for this message
alviks (allanvikstrom) said :
#1
Revision history for this message
Ilya Barygin (randomaction) said :
#2

Indeed, you seem to have Ubuntu 7.04 installed. It reached its end of life in October 2008, so the software repositories have been moved to a different place. To continue with upgrade, you need to correct your sources.list file. To do this, start a terminal (Apllications -> Accessories -> Terminal) and enter:

gksudo gedit /etc/apt/sources.list

An editor window will open. Throughout this file, release archive.ubuntu.com with old-releases.ubuntu.com . Save and exit. Synaptic and update manager should be functional after this.

Revision history for this message
Ilya Barygin (randomaction) said :
#3

Sorry, a typo: you should _replace_ archive.ubuntu.com with old-releases.ubuntu.com .

Revision history for this message
Shane Fagan (shanepatrickfagan) said :
#4

Id say just back up your data and do a fresh install of a newer version of ubuntu.
It would be a lot easier and it will save you some time.
7.04 is already obsolete and 7.10 is now obsolete also.
So if you upgrade to 8.10 or 9.04 (when it comes out) you will get all the bug fixes and newer software.

Revision history for this message
alviks (allanvikstrom) said :
#5

Yeah, I want to install 8.04 LTS, but I've read that it's recommended to
go through all the releases, one after the other instead of jumping to
the latest... Thanks , Allan

On Wed, 2009-04-15 at 10:52 +0000, shane fagan wrote:
> Your question #67522 on firefox in ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+source/firefox/+question/67522
>
> shane fagan proposed the following answer:
> Id say just back up your data and do a fresh install of a newer version of ubuntu.
> It would be a lot easier and it will save you some time.
> 7.04 is already obsolete and 7.10 is now obsolete also.
> So if you upgrade to 8.10 or 9.04 (when it comes out) you will get all the bug fixes and newer software.
>

Revision history for this message
Cruncher (ubuntu-wkresse) said :
#6

Yes, the safest way is to do an incremental upgrade, first to 7.10, then to 8.04.
The suggestion Ilya gave is part of the solution, but it will fail, since it is not complete. Please follow these instructions here closely, the important part besides modifying your sources.list (and adding the debian-installer line) is step #6 described there.

Revision history for this message
Cruncher (ubuntu-wkresse) said :
#7
Revision history for this message
alviks (allanvikstrom) said :
#8

Still not working. You mentioned "adding the debian-installer line". How is this done?

Revision history for this message
Cruncher (ubuntu-wkresse) said :
#9

It is described in the link I gave you. The line is part of the stuff you need to add to your sources.list, as described there. Be sure to follow the instructions precisely, or you may run into trouble.
You should also do this upgrade before April 18th, because then 7.10/Gutsy will become an "old" release as well, and things might change.

Revision history for this message
alviks (allanvikstrom) said :
#10

OK, I saw the line in the sources.list, thanks. I must still be doing something wrong, the Update manager still haven't enough repositories for the upgrade.

Never again will I work with unsupported releases.. I will try some more before giving up and instead install 8.10 from scratch. But then I will have to worry about loosing data when I have to do the partitioning..

Revision history for this message
Best Cruncher (ubuntu-wkresse) said :
#11

OK, in that case we will do the upgrade manually, without the update manager, to figure out where the problem is. Make sure you added all 6 lines starting with "deb" and "deb-src" as shown in the link first.
====> Note that you also need to comment out all other "deb" and "deb-src" lines! Just add a '#' in front of every line that doesn't already have one, except for the 6 lines you just added to the file.

Then open a terminal (Appilcations->Accessoires->Terminal) and run these commands. If any of these commands return with an error, please post the command and the full output here.
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

After that your system should be up to date, but still 7.04. But it will be ready to upgrade to 7.10 at this point. Use this command:
sudo apt-get dist-upgrade

Revision history for this message
alviks (allanvikstrom) said :
#12

Did that, but Update Manager still misses a lot of repositories and the upgrade cannot be completed.l Q:should I still replace archive.ubuntu.com with old-releases.ubuntu.com ? This is not mentioned in the instructions on https://help.ubuntu.com/community/GutsyUpgrades.

Revision history for this message
alviks (allanvikstrom) said :
#13

Update manager displays: Error during update

A problem occured during the update. This is usually some sort of network problem, please check your network connection and retry. Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/Release.gpg Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/main/i18n/Translation-en_US.bz2 Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/restricted/i18n/Translation-en_US.bz2 Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/universe/i18n/Translation-en_US.bz2 Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/multiverse/i18n/Translation-en_US.bz2 Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/main/binary-i386/Packages.gz Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/restricted/binary-i386/Packages.gz Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/universe/binary-i386/Packages.gz Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/multiverse/binary-i386/Packages.gz Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/main/source/Sources.gz Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/restricted/source/Sources.gz Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/universe/source/Sources.gz Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://ch.old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/multiverse/source/Sources.gz Could not resolve 'ch.old-releases.ubuntu.com'
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/restricted/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/restricted/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/main/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/multiverse/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/universe/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/universe/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/multiverse/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy/universe/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-updates/main/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-updates/restricted/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-updates/main/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-updates/restricted/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-updates/universe/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-updates/main/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-security/main/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-security/restricted/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-security/restricted/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-security/main/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-security/multiverse/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-security/universe/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-security/universe/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-security/multiverse/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/restricted/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/main/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/multiverse/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/universe/binary-i386/Packages.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/restricted/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/main/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/multiverse/source/Sources.gz 404 Not Found
Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/gutsy-backports/universe/source/Sources.gz 404 Not Found

Revision history for this message
alviks (allanvikstrom) said :
#14

I must have messed up my sources.list. Is it possible to start all over and create one from scratch?

Revision history for this message
alviks (allanvikstrom) said :
#15
Revision history for this message
alviks (allanvikstrom) said :
#16

It worked. Emptying /etc/apt/sources.list.d and using a significantly shorter source.list seems to have done the trick. However, now's the /etc/apt/sources.list.d empty, should I be concerned?

Revision history for this message
Cruncher (ubuntu-wkresse) said :
#17

Hm, for some reason the entries in your sources.list you posted already referred to Gutsy, which is 7.10...
But if it worked now and the problem is solved, it's fine.

The sources.list.d ist just a directory for additional, external repositories, it's quite OK if it is empty.

Revision history for this message
alviks (allanvikstrom) said :
#18

Thanks for your input and support, I'm running 8.04 now, everything works fine. I will upgrade to 8.10 and later 9.04 when possible/stable

Revision history for this message
Cruncher (ubuntu-wkresse) said :
#19

Glad it worked out!
If you upgrade to 8.10 or 9.04, it is best to upgrade your system about twice a year (which is the release cycle), so you won't run into the problem of upgrading from unsupported systems anymore.
If you stick with 8.04, which is a Long Term Support release, you don't *need* to upgrade until April 2011, but the advantages of regular updates are newer software versions of all applications etc.

Revision history for this message
alviks (allanvikstrom) said :
#20

Thanks Cruncher, that solved my question.