[Bug 1827951] Re: snaps not refreshed when upgrading from bionic or cosmic to disco

Ɓukasz Zemczak 1827951 at bugs.launchpad.net
Wed May 8 17:09:59 UTC 2019


Hello Brian, or anyone else affected,

Accepted ubuntu-release-upgrader into disco-proposed. The package will
build now and be available at https://launchpad.net/ubuntu/+source
/ubuntu-release-upgrader/1:19.04.16.4 in a few hours, and then in the
-proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested and change the tag from
verification-needed-disco to verification-done-disco. If it does not fix
the bug for you, please add a comment stating that, and change the tag
to verification-failed-disco. In either case, without details of your
testing we will not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: ubuntu-release-upgrader (Ubuntu Disco)
       Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-disco

-- 
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 Committed

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