cannot upgrade from 23.10 to 24.04, error in _install_t64_replacement_packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Invalid
|
High
|
Nick Rosbrook | ||
Noble |
Fix Released
|
High
|
Nick Rosbrook |
Bug Description
[Impact]
Upgrades to Noble may crash while searching for t64 replacement packages.
[Test Plan]
One way to reproduce this is by setting Pin-Priority: -1 for a t64 replacement package so that `replacement` will have no candidate.
$ apt install -y libts0
$ cat > /etc/apt/
Package: libts0t64
Pin: release a=noble
Pin-Priority: -1
EOF
$ do-release-upgrade --proposed
Before the patch, that will lead to the same crash shown in this bug report.
[Where problems could occur]
The patch is confined to the t64 replacement quirk. Any other issues would be there. The fix is to simply make sure the replacement has a candidate (i.e. replacement.
[Original Description]
it crashes while calculating space - cannot proceed to package downloading.
short from the logs:
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
func()
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
if replacement.
AttributeError: 'NoneType' object has no attribute '_cand'
full logs attached as files.
Related branches
- Julian Andres Klode: Approve
-
Diff: 176 lines (+16/-104)3 files modifiedDistUpgrade/DistUpgradeController.py (+13/-10)
DistUpgrade/DistUpgradeQuirks.py (+3/-45)
tests/test_quirks.py (+0/-49)
tags: | added: rls-nn-incoming |
Changed in ubuntu-release-upgrader (Ubuntu): | |
importance: | Undecided → High |
tags: |
added: foundations-bugs removed: rls-nn-incoming |
tags: |
added: foundations-todo removed: foundations-bugs |
Changed in ubuntu-release-upgrader (Ubuntu): | |
assignee: | nobody → Nick Rosbrook (enr0n) |
Changed in ubuntu-release-upgrader (Ubuntu Noble): | |
status: | Triaged → In Progress |
Status changed to 'Confirmed' because the bug affects multiple users.