[FFe] gnome-{calculator,logs,characters} snaps not removed after the equivalent APT packages are installed on 20.04, and gnome-software APT package not replaced by snap-store

Bug #1868409 reported by Naël
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
High
Marcus Tomlinson

Bug Description

[ Description ]

I'm trialing the development release of Ubuntu 20.04, installed in December and kept up-to-date by regularly running apt full-upgrade.

I understand from [1] that 20.04 will ship gnome-{calculator,logs,characters} as APT packages rather than snap apps, and gnome-software as a snap app (called snap-store) rather than an APT package.

Following an apt full-upgrade in late February, I now have:

* both the snap and the APT versions of gnome-{calculator,logs,characters}
* still only the APT version of gnome-software, no snap-store

Is this normal? A user in the #ubuntu+1 IRC channel reports that a fresh install of the development release:

* only features the APT versions of gnome-{calculator,logs,characters}
* features the snap-store (but also the APT version of gnome-software)

Are users of older installs of the development release supposed to manually uninstall the snap versions of gnome-{calculator,logs,characters} and manually install the snap-store?

[1] https://discourse.ubuntu.com/t/is-ubuntu-software-going-to-be-remove-for-snap-snap-store/14542

[ Testing ]

With the linked branch applied, update-manager will now (post-upgrade) update snaps according to the seeds described in /usr/share/ubuntu-release-upgrader/deb2snap.json.

There are three possible update actions:

1. A seeded snap that is not already installed gets installed.
2. An unseeded snap that has dependants gets refreshed to stable.
3. An unseeded snap that has no dependants gets removed.

In case 1, if the equivalent deb is installed and was not installed manually, it gets removed.

To test all three cases:

`
sudo apt -y install gnome-software
sudo apt-mark auto gnome-software
snap remove snap-store

snap install gnome-3-28-1804
snap refresh gnome-3-28-1804 --channel=latest/stable/ubuntu-18.04
snap install libreoffice

snap install gnome-calculator
snap refresh gnome-calculator --channel=latest/stable/ubuntu-19.10
snap install gnome-logs
snap refresh gnome-logs --channel=latest/stable/ubuntu-19.04
snap install gnome-characters
snap refresh gnome-characters --channel=latest/stable/ubuntu-20.04

update-manager
`

Once the update completes you should have:

- the gnome-software deb removed,
- the snap-store snap installed from "latest/stable/ubuntu-20.04",
- the gnome-3-28-1804 snap installed from "stable",
- and the gnome-{calculator,logs,characters} snaps removed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-meta (Ubuntu):
status: New → Confirmed
tags: added: rls-ff-incoming
Revision history for this message
Brian Murray (brian-murray) wrote :

The desktop team is currently working on changes to update-manager which would replace snaps with deb packages and this would help people who installed or upgraded to the development release of Ubuntu early.

https://code.launchpad.net/~marcustomlinson/update-manager/update-manager/+merge/380060

However, that would not help you out as you are using apt directly.

Revision history for this message
Naël (nathanael-naeri) wrote :

Thanks for the insight Brian. I indeed rarely use the graphical update manager. I'm starting to suspect I should manually install the snap-store and uninstall the gnome-{calculator,logs,characters} snaps to get in sync with the development release.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Hi Naël, yes that's correct. If you wish not to use update-manager, correcting this will need to be done manually as you've described.

Changed in update-manager (Ubuntu):
status: New → Triaged
assignee: nobody → Marcus Tomlinson (marcustomlinson)
no longer affects: ubuntu-meta (Ubuntu)
no longer affects: gnome-logs (Ubuntu)
no longer affects: gnome-characters (Ubuntu)
no longer affects: gnome-calculator (Ubuntu)
Changed in update-manager (Ubuntu):
importance: Undecided → High
status: Triaged → In Progress
summary: - gnome-{calculator,logs,characters} snaps not removed after the
+ [FFe] gnome-{calculator,logs,characters} snaps not removed after the
equivalent APT packages are installed on 20.04, and gnome-software APT
package not replaced by snap-store
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Iain Lane (laney) wrote :

Thanks for the FFe. I agree we should get this into Focal, so +1 from me (~ubuntu-release).

There's a new translatable string here, so please could you email the translation team per https://wiki.ubuntu.com/UserInterfaceFreeze ?

I will review and look to upload - after that, someone else in the team will need to review in the unapproved queue that it will be caught in due to the freeze.

Marcus, it would be great if you could please subscribe to update-manager bugs for a couple of weeks at least, to see if there are any unexpected issues.

description: updated
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Thanks Iain. I've subscribed to bug mail, thanks for the reminder.

Permission request on ubuntu-translators:
https://lists.ubuntu.com/archives/ubuntu-translators/2020-April/007628.html

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

It looks like Iain already decided that the importance of this change justifies the late translatable strings. ;) I have no other opinion from a translation POV.

However, only one of the five new translatable strings are available for translation at LP. The file with the other four strings is missing in po/POTFILES.in. I submitted a MP which ought to fix it (linked above).

Revision history for this message
Naël (nathanael-naeri) wrote :

Thanks a lot for the work Marcus, and Iain for reviewing, Gunnar for translating! I look forward to try that out.

Revision history for this message
Igor Zubarev (igor.zubarev) wrote :

Hi Lane!

I have Ubuntu 20.04 upgraded from 19.10 with same problem. Should I run update-manager in order to solve or manually remove snaps etc?

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

You can do either Igor, though if you’d like to go the update-manager route, you’ll either need to install it from proposed or (better) wait for it to land in main.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:20.04.4

---------------
update-manager (1:20.04.4) focal; urgency=medium

  * Fix pycodestyle and pyflakes autopkgtests.

 -- Marcus Tomlinson <email address hidden> Tue, 07 Apr 2020 14:26:10 +0100

Changed in update-manager (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Naël (nathanael-naeri) wrote :

Just ran update-manager and can confirm that the fix works perfectly. The gnome-{calculator,logs,characters} snaps were removed, leaving their deb equivalents. The snap-store was installed, and the gnome-software deb was removed.

Thanks a lot!

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Excellent, thanks for the update Naël.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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