ports.ubuntu.com not selected for arm64 architecture

Bug #1917220 reported by Emmanuel Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
Medium
Brian Murray

Bug Description

0) Machine

Raspberry Pi 4 Model B Rev 1.1

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu

Description: Ubuntu 19.10
Release: 19.10

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center

3) What you expected to happen

Successful upgrade to Ubuntu 20.04.

4) What happened instead

Failed upgrade. 404 error for those URLs:

http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages
http://us.archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/
http://us.archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages

5) Resolution

It appeared that the selected servers did not contain the arm64 architecture. It should have used ports.ubuntu.com.

Modifying the upgrader to select ports.ubuntu.com for the architecture arm64 solved the issue. (see patch attached)

Revision history for this message
Emmanuel Thomas (emthom) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Adding arm64 to the list of architectures using ports.ubuntu.com" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

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

Thanks for bringing this issue up and working on a patch for it. I've actually modified the arch check to drop powerpc and sparc, and to add every architecture which is on ports.ubuntu.com.

Out of curiosity how did you end up with the sources.list entries which 404'ed?

Changed in ubuntu-release-upgrader (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
status: New → In Progress
importance: Undecided → Medium
tags: added: rls-hh-incoming
Revision history for this message
Emmanuel Thomas (emthom) wrote :

You are welcome. I wasn't sure indeed if it was the right fix, but it did the job for my upgrade. If you have a link to it, I would be interested to check your modification also for my own curiosity.

About your question, the upgrader complained about the 404 errors on the console logs. I copied them from there and figured out that something was wrong regarding the choice of the server. Is this what you were wondering?

Revision history for this message
Brian Murray (brian-murray) wrote :

Here's the modification I made:

https://git.launchpad.net/ubuntu-release-upgrader/commit/?id=cdcdf5b30e443f8621be81f572d12d9da9d2a8a4

I'm curious about how those entries ended up in your sources.list file. The installer uses ports.ubuntu.com urls.

Revision history for this message
Julian Andres Klode (juliank) wrote :

I think a better approach that avoids duplicating which archs are where and the urls is to talk to aptsources and get the BaseURI, but I'm not sure how :D

Revision history for this message
Emmanuel Thomas (emthom) wrote :

Right, my sources.list had originally ports.ubuntu.com urls. Since I was still with the 19.10 version, I couldn't update my system anymore. To update it, I changed the urls to old-releases.ubuntu.com/ubuntu/ and then did the upgrade. It is probably why I ended up having this bug ...

tags: removed: rls-hh-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:21.04.7

---------------
ubuntu-release-upgrader (1:21.04.7) hirsute; urgency=medium

  * DistUpgrade/DistUpgradeController.py: Only rewrite archive.u.c and
    security.u.c to ports.
  * test/test_sources_list.py: update the tests for the changes regarding
    rewriting uris for ports.u.c.
  * Run pre-build.sh.

 -- Brian Murray <email address hidden> Thu, 08 Apr 2021 13:02:02 -0700

Changed in ubuntu-release-upgrader (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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