Handle (t64) package replacements

Bug #2061175 reported by Julian Andres Klode
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Release Notes for Ubuntu
New
Undecided
Unassigned
ubuntu-release-upgrader (Ubuntu)
Fix Released
Critical
Nick Rosbrook
Noble
Fix Released
Critical
Nick Rosbrook

Bug Description

We should do something like:

for package in cache:
  if package.is_installed and <candidate version is obsolete>:
     replacement = <find a package in the archive that Conflicts/Breaks + Replaces + Provides it>
     replacement.mark_install(auto_fix=False, auto_inst=False)
     replacement.mark_remove(auto_fix=False)

To hint the solver to remove the installed pre-t64 packages and install packages replacing it. We gotta do some auto_fix, auto_inst False stuff as we do not want to resolve the dependencies at this point, let the upgrader work on this.

I do not believe we have to protect our choice to remove the packages here like we did for gpg-wks-server as the packages are not updatable, but I can't say I've checked. Potentially maybe just the mark_install are enough since they will inevitably result in removals anyway, but this would be easier if the removal sticks around.

tags: added: foundations-todo
Steve Langasek (vorlon)
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → Critical
status: New → Triaged
assignee: nobody → Nick Rosbrook (enr0n)
Nick Rosbrook (enr0n)
Changed in ubuntu-release-upgrader (Ubuntu Noble):
status: Triaged → In Progress
Changed in ubuntu-release-upgrader (Ubuntu Noble):
status: In Progress → Fix Committed
milestone: none → ubuntu-24.04
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
ubuntu-release-upgrader (1:24.04.14) noble; urgency=medium

  [ Brian Murray ]
  * Set prompt to lts because 24.04 is one (LP: #2061214)

  [ Nick Rosbrook ]
  * DistUpgradeQuirks: tell apport to ignore update-apt-xapian-index
    (LP: #2058227)
  * DistUpgradeQuirk: fix check for linux-image-raspi in cache (LP: #2061181)
  * DistUpgradeQuirks: handle t64 replacement packages (LP: #2061175)
  * Run pre-build.sh: updating mirrors, demotions, and translations.

 -- Nick Rosbrook <email address hidden> Mon, 15 Apr 2024 15:02:26 -0400

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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