[Bug 2045784] [NEW] Set APT::Get::Always-Include-Phased-Updates in ubuntu-release-upgrader
Julian Andres Klode
2045784 at bugs.launchpad.net
Wed Dec 6 16:36:34 UTC 2023
Public bug reported:
We had a bunch of mysterious update failures and talking about it I
realized this might be caused by phased updates. I thought we had set
"APT::Get::Always-Include-Phased-Updates" to always make the u-r-u pick
up upgrades that are still phasing, but looking through the code I don't
see it.
Without the flag, APT will keep back the package from upgrading and keep
it on the installed version from the previous release, which is not what
we want. It may then keep back stuff depending on the new version and
eventually keep back entire subtrees of the upgrade.
So basically just set
apt_pkg.config["APT::Get::Always-Include-Phased-Updates"] = "yes"
To make APT install phased upgrades during release upgrades.
Sadly APT is not able to just switch to another version at this point, maybe one day launchpad keeps old updates around while phasing and we can then rework the apt phasing to use those, but it also needs a different solver that can handle ordered lists of versions rather than one candidate version.
** Affects: ubuntu-release-upgrader (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2045784
Title:
Set APT::Get::Always-Include-Phased-Updates in ubuntu-release-
upgrader
Status in ubuntu-release-upgrader package in Ubuntu:
New
Bug description:
We had a bunch of mysterious update failures and talking about it I
realized this might be caused by phased updates. I thought we had set
"APT::Get::Always-Include-Phased-Updates" to always make the u-r-u
pick up upgrades that are still phasing, but looking through the code
I don't see it.
Without the flag, APT will keep back the package from upgrading and
keep it on the installed version from the previous release, which is
not what we want. It may then keep back stuff depending on the new
version and eventually keep back entire subtrees of the upgrade.
So basically just set
apt_pkg.config["APT::Get::Always-Include-Phased-Updates"] = "yes"
To make APT install phased upgrades during release upgrades.
Sadly APT is not able to just switch to another version at this point, maybe one day launchpad keeps old updates around while phasing and we can then rework the apt phasing to use those, but it also needs a different solver that can handle ordered lists of versions rather than one candidate version.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2045784/+subscriptions
More information about the foundations-bugs
mailing list