mixed ports/archive setup fails to update source list correctly

Bug #1969284 reported by Liz Fong-Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ uname -a
Linux daisy 5.13.0-27-generic #29~20.04.1-Ubuntu SMP Fri Jan 14 00:35:28 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

$ grep main /etc/apt/sources.list
deb [arch=arm64,armhf] http://us.ports.ubuntu.com/ubuntu-ports/ focal main restricted
deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ focal main restricted

when do-release-upgrade -d is run to upgrade to jammy, all the sources get changed to us.ports.ubuntu.com/ubuntu-ports, even the amd64 arch sources which do not exist on ports, only on archive. This results in this 404 in apt update and the upgrade bailing:

Err http://ports.ubuntu.com/ubuntu-ports jammy/main amd64 Packages
  404 Not Found [IP: 185.125.190.36 80]
Err http://ports.ubuntu.com/ubuntu-ports jammy/restricted amd64 Packages
  404 Not Found [IP: 185.125.190.36 80]
Err http://ports.ubuntu.com/ubuntu-ports jammy/universe amd64 Packages
  404 Not Found [IP: 185.125.190.36 80]
Err http://ports.ubuntu.com/ubuntu-ports jammy/multiverse amd64 Packages
  404 Not Found [IP: 185.125.190.36 80]

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.