[Bug 1827951] Re: snaps not refreshed when upgrading from bionic or cosmic to disco
Launchpad Bug Tracker
1827951 at bugs.launchpad.net
Mon May 13 19:09:46 UTC 2019
This bug was fixed in the package ubuntu-release-upgrader - 1:19.04.16.4
---------------
ubuntu-release-upgrader (1:19.04.16.4) disco; urgency=medium
* DistUpgrade/DistUpgradeQuirks.py: modify function which updates snaps so
that it determines the release from which a system is being upgraded.
Additionally, update the channel for the snap to reflect the release to
which we are upgrading. (LP: #1827951)
* data/DistUpgrade.cfg.bionic, data/DistUpgrade.cfg:
- update KernelRemoval sections to kernel packages that appear in
Ubuntu 18.04 and Ubuntu 18.10. (LP: #1828072)
ubuntu-release-upgrader (1:19.04.16.3) disco; urgency=medium
* data/DistUpgrade.cfg.bionic,
data/demoted.cfg.bionic,
pre-build.sh:
- support upgrades from bionic (LP: #1827635)
-- Brian Murray <brian at ubuntu.com> Mon, 06 May 2019 16:20:45 -0700
** Changed in: ubuntu-release-upgrader (Ubuntu Disco)
Status: Fix Committed => Fix Released
--
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/1827951
Title:
snaps not refreshed when upgrading from bionic or cosmic to disco
Status in ubuntu-release-upgrader package in Ubuntu:
Fix Released
Status in ubuntu-release-upgrader source package in Disco:
Fix Released
Bug description:
[Impact]
People have outdated snaps!
The function _replaceDebsWithSnaps() has the version number of Ubuntu hardcoded in it and was not updated in Ubuntu 19.04. Subsequently, the snaps are not refreshed when upgrading from Ubuntu 18.10 to Ubuntu 19.04. This was fixed in Eoan by utilizing python distro_info's ability to get the release version for a codename but unfortunately that's not available in Ubuntu 19.04 so we'll just update the hardcoded version.
[Test Case]
1) on a cosmic or bionic system run do-release-upgrade and upgrade to disco
2) observe the following in /var/log/dist-upgrade/main.log
2019-05-07 11:38:20,921 DEBUG Snap gnome-calculator is installed
2019-05-07 11:38:20,921 DEBUG Snap gnome-calculator is not tracking the release channel
3) also check the output of "snap info gnome-calculator" for tracking "stable/18.10" (or 18.04)
With the version of the release-upgrader in -proposed (do-release-upgrade -p) gnome-calculator will end up tracking 19.04 and you'll see the following in main.log:
"2019-05-07 12:41:25,611 DEBUG refresh of snap gnome-calculator succeeded"
[Regression Potential]
I've set fromVersion to a default value of '' so I think there is little chance of there being a regression.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1827951/+subscriptions
More information about the foundations-bugs
mailing list