6.06 upgrade fails due to bad repo?

Bug #822910 reported by Robb Breckenridge
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Trying to upgrade a server from 6.06 to 8.04.
I think it's failing because it can't find http://archive.ubuntu.com/ubuntu dapper-backports main/debian-installer

That missing repo seems to automatically get added to /etc/apt/sources.list.d/prerequists-sources.dapper.list

I have do not have any backports enabled in /etc/apt/sources.list. I've tried commenting out the line in prerequists-sources.dapper.list and making the file read-only, but it still gets added when I try to upgrade.

Is this something you're able to update on the copy of prerequists-sources.dapper.list that gets pushed out?

Here is a copy of /etc/apt/sources.list and /etc/apt/sources.list.d/prerequists-sources.dapper.list -- Happy to provide more info if it's useful.......
http://pastebin.com/vnsfvvdq

tags: added: distribution-upgrade
Revision history for this message
Brian Murray (brian-murray) wrote :

To be clear you are using update-manager from the command to upgrade your server from 6.06 to 8.04 is that correct?

Changed in update-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Robb Breckenridge (not-robb) wrote : Re: [Bug 822910] Re: 6.06 upgrade fails due to bad repo?

Yeah, I've been doing "do-release-upgrade" from the CLI.

I've also tried the GUI updater and it has the same results
"The system was unable to get the prerequisites for the upgrade".

R

----- Original Message -----
From: "Brian Murray" <email address hidden>
To: "not robb" <email address hidden>
Sent: Tuesday, August 9, 2011 10:55:08 AM
Subject: [Bug 822910] Re: 6.06 upgrade fails due to bad repo?

To be clear you are using update-manager from the command to upgrade
your server from 6.06 to 8.04 is that correct?

** Changed in: update-manager (Ubuntu)
       Status: New => Incomplete

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/822910

Title:
  6.06 upgrade fails due to bad repo?

Status in “update-manager” package in Ubuntu:
  Incomplete

Bug description:
  Trying to upgrade a server from 6.06 to 8.04.
  I think it's failing because it can't find http://archive.ubuntu.com/ubuntu dapper-backports main/debian-installer

  That missing repo seems to automatically get added to
  /etc/apt/sources.list.d/prerequists-sources.dapper.list

  I have do not have any backports enabled in /etc/apt/sources.list.
  I've tried commenting out the line in prerequists-sources.dapper.list
  and making the file read-only, but it still gets added when I try to
  upgrade.

  Is this something you're able to update on the copy of prerequists-
  sources.dapper.list that gets pushed out?

  Here is a copy of /etc/apt/sources.list and /etc/apt/sources.list.d/prerequists-sources.dapper.list -- Happy to provide more info if it's useful.......
  http://pastebin.com/vnsfvvdq

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/822910/+subscriptions

Revision history for this message
Per Cederqvist (ceder) wrote :
Download full text (3.2 KiB)

Robb, you did not describe exactly what happened when you attempted to upgrade. I'm having trouble upgrading a 8.10 server, and the root cause of both our problems may be that the UpgradeTool of http://changelogs.ubuntu.com/meta-release points to non-existing URLs for both 8.10 and 6.06.

When I run "sudo do-release-upgrade" I get the following output:

  Checking for a new ubuntu release
  Failed Upgrade tool signature
  Failed Upgrade tool
  Done downloading
  extracting 'jaunty.tar.gz'
  Failed to extract
  Extracting the upgrade failed. There may be a problem with the network or with the server.

Not very helpful. Using strace I'm able to retrive the real error messages:

  sudo strace -f -s 70000 -o /tmp/release.strace do-release-upgrade

Afterwards, in the /tmp/release.strace file I can see that it fetches the meta-release file
and stores it in /var/lib/update-manager/meta-release. It seems to try to use the
UpgradeTool URL from that file to retrieve jaunty.tar.gz. I see this error message:

  28281 <... read resumed> "400 URI Failure\nURI: http://archive.ubuntu.com/ubuntu/dists/jaunty-proposed/main/dist-upgrader-all/0.111.8/jaunty.tar.gz\nMessage: 404 Not Found [IP: 91.189.88.45 80]\nFailReason: HttpError404\n\n", 64000) = 192

If I change the URI of /etc/update-manager/meta-release from
http://changelogs.ubuntu.com/meta-release to http://www.lysator.liu.se/~ceder/tmp/meta-old
(where I have blindly replaced all "archive" with "old-releases") things work slightly better.
The jaunty.tar.gz file is accepted. But after a while I get these messages:

  Hit http://old-releases.ubuntu.com intrepid-security/universe Packages
  Hit http://old-releases.ubuntu.com intrepid-security/multiverse Packages
  Done downloading
  Reading package lists: Done
  Reading state information: Done
  Reading state information: Done
  Reading state information: Done

  Updating repository information

  No valid mirror found

  While scanning your repository information no mirror entry for the
  upgrade was found.This can happen if you run a internal mirror or if
  the mirror information is out of date.

  Do you want to rewrite your 'sources.list' file anyway? If you choose
  'Yes' here it will update all 'intrepid' to 'jaunty' entries.
  If you select 'no' the update will cancel.

  Continue [yN]

If I restore the /etc/update-manager/meta-release file and run this

  echo 91.189.88.140 archive.ubuntu.com | sudo tee -a /etc/hosts

things work even better. The IP address actually belongs to old-releases.ubuntu.com.
Now I get all the way to

  Do you want to start the upgrade?

  1 package is going to be removed. 57 new packages are going to be
  installed. 828 packages are going to be upgraded.

  You have to download a total of 430M. This download will take about 7
  minutes with your connection.

  Fetching and installing the upgrade can take several hours. Once the
  download has finished, the process cannot be cancelled.

   Continue [yN] Details [d]

...and here I bail out because I cannot actually update the server until
th...

Read more...

Revision history for this message
Robb Breckenridge (not-robb) wrote :
Download full text (4.7 KiB)

Hi Per,

I think we are experiencing different issues.

Here's my output of "do-release-upgrade"..
http://pastebin.com/6zQHQNyn

R

----- Original Message -----
From: "Per Cederqvist" <email address hidden>
To: "not robb" <email address hidden>
Sent: Tuesday, August 9, 2011 12:57:22 PM
Subject: [Bug 822910] Re: 6.06 upgrade fails due to bad repo?

Robb, you did not describe exactly what happened when you attempted to
upgrade. I'm having trouble upgrading a 8.10 server, and the root cause
of both our problems may be that the UpgradeTool of
http://changelogs.ubuntu.com/meta-release points to non-existing URLs
for both 8.10 and 6.06.

When I run "sudo do-release-upgrade" I get the following output:

  Checking for a new ubuntu release
  Failed Upgrade tool signature
  Failed Upgrade tool
  Done downloading
  extracting 'jaunty.tar.gz'
  Failed to extract
  Extracting the upgrade failed. There may be a problem with the network or with the server.

Not very helpful. Using strace I'm able to retrive the real error
messages:

  sudo strace -f -s 70000 -o /tmp/release.strace do-release-upgrade

Afterwards, in the /tmp/release.strace file I can see that it fetches the meta-release file
and stores it in /var/lib/update-manager/meta-release. It seems to try to use the
UpgradeTool URL from that file to retrieve jaunty.tar.gz. I see this error message:

  28281 <... read resumed> "400 URI Failure\nURI:
http://archive.ubuntu.com/ubuntu/dists/jaunty-proposed/main/dist-
upgrader-all/0.111.8/jaunty.tar.gz\nMessage: 404 Not Found [IP:
91.189.88.45 80]\nFailReason: HttpError404\n\n", 64000) = 192

If I change the URI of /etc/update-manager/meta-release from
http://changelogs.ubuntu.com/meta-release to http://www.lysator.liu.se/~ceder/tmp/meta-old
(where I have blindly replaced all "archive" with "old-releases") things work slightly better.
The jaunty.tar.gz file is accepted. But after a while I get these messages:

  Hit http://old-releases.ubuntu.com intrepid-security/universe Packages
  Hit http://old-releases.ubuntu.com intrepid-security/multiverse Packages
  Done downloading
  Reading package lists: Done
  Reading state information: Done
  Reading state information: Done
  Reading state information: Done

  Updating repository information

  No valid mirror found

  While scanning your repository information no mirror entry for the
  upgrade was found.This can happen if you run a internal mirror or if
  the mirror information is out of date.

  Do you want to rewrite your 'sources.list' file anyway? If you choose
  'Yes' here it will update all 'intrepid' to 'jaunty' entries.
  If you select 'no' the update will cancel.

  Continue [yN]

If I restore the /etc/update-manager/meta-release file and run this

  echo 91.189.88.140 archive.ubuntu.com | sudo tee -a /etc/hosts

things work even better. The IP address actually belongs to old-releases.ubuntu.com.
Now I get all the way to

  Do you want to start the upgrade?

  1 package is going to be removed. 57 new packages are going to be
  installed. 828 packages are going to be upgraded.

  You have to download a total of 430M. This download will take ...

Read more...

Revision history for this message
Chris Smowton (cs448) wrote :

Hey Robb,

I worked around the same thing, here: http://ubuntuforums.org/showthread.php?t=1822086

C

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for update-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in update-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.