When a flatpak changes its runtime and the runtime is not installed, gnome-software fails to update the app and install the required runtime
@ahayzen
Submitted by Andrew Hayzen Assigned to Richard Hughes @hughsie
Link to original bug (#791106)
Description
Created attachment 364794 Error updating spotify flatpak
What Happened:
- Blank Fedora 27 Virtual Machine
- Installed Spotify flatpak and it's required runtime
- Spotify flatpak changed it's runtime [0]
- An update appeared in gnome-software
- When trying to perform the update, it failed due to the new runtime not being installed. (see attached screenshot [Error updating spotify flatpak])
What I expected to happen: At step 5 for the update to install the runtime (or prompt to install), so that the app can be updated. (as you can see in the screenshot that the flatpak CLI is trying to do when running $ flatpak update).
Workaround (via GUI-only):
- Remove the spotify flatpak
- Restart your machine (I tried refreshing and restarting gnome-software, but it seemed to have cached things)
- Install spotify flatpak from gnome-software (it works and installs the new runtime)
0 - https://github.com/flathub/com.spotify.Client/commit/52720fc73620c8b904663383e155d3be73fd1776
$ lsb_release -rd Description: Fedora release 27 (Twenty Seven) Release: 27
Installed Packages Name : gnome-software Version : 3.26.3 Release : 1.fc27 Arch : x86_64 Size : 8.1 M Source : gnome-software-3.26.3-1.fc27.src.rpm Repo : @System From repo : updates
Installed Packages Name : flatpak Version : 0.10.1 Release : 1.fc27 Arch : x86_64 Size : 4.3 M Source : flatpak-0.10.1-1.fc27.src.rpm Repo : @System From repo : updates