cancelling while installation shows its installed
OS: debian sid gnome-software version: 3.36.0-3
Steps to reproduce:
- Click on install for any application
- Press cancel on midway
- It the software view screen shows its installed and has remove and launch buttons.
Debugging:
It shows the following error (on terminal when gnome-software is launched from terminal) on cancel button is pressed 07:22:27:0419 PK internal error: failed, but no error code: cancelled
The application is not installed.
When remove is clicked, it gives notification `Unable to remove software removing is not available"
Launch button doesn't produce any actions. But it shows following errors 07:32:10:0263 Gs failed to launch GsApp: no plugin could handle launch
07:32:10:0264 Gs not handling error not-supported for action launch: no such desktop file: org.gnome.Boxes.desktop
When gnome-software is killed and restarted, the application shows the right state, which is not installed.
Conclusion: I think the issue can be solved by adding error message (like "installation cancelled") on cancellation of installation.
Full Debug message:
07:42:13:0365 GsPluginPackageKit getting history for 1 packages
07:42:13:0377 Gs running refine with dedupe-flags=7 with refine-flags=require-license,require-url,require-description,require-version,require-history,require-setup-action,require-origin,require-menu-path,require-addons,require-provenance,require-icon,require-permissions,require-origin-hostname,require-runtime,require-screenshots,require-categories,require-project-group,require-developer-name,require-kudos,content-rating with timeout=60 on apps system/package/debian-unstable-main/desktop/org.gnome.Boxes.desktop/* took 33ms
07:42:13:0379 Gs GsApp: [0x7fae040cbed0]
kind: desktop
state: available
quirk: provenance
id: org.gnome.Boxes.desktop
unique-id: system/package/debian-unstable-main/desktop/org.gnome.Boxes.desktop/*
scope: system
bundle-kind: package
kudos: my-language|recent-release|has-keywords|has-screenshots|hi-dpi-icon
kudo-percentage: 85
name: GNOME Boxes
pixbuf: 0x7fae00055120
icon-kind: stock
icon-name: org.gnome.Boxes
icon-prefix: /var/lib/app-info/icons/debian-sid-main
icon-kind: cached
icon-pixbuf: 0x7fae00055120
icon-name: gnome-boxes_org.gnome.Boxes.png
icon-prefix: /var/lib/app-info/icons/debian-sid-main
version: 3.36.3-1
summary: Simple remote and virtual machines
description: A simple GNOME 3 application to access remote or virtual systems. Unlike some other virtual machine management software, Boxes is targeted towards typical desktop end-users. For this reason, Boxes will not provide many advanced options to tweak virtual machines. Instead Boxes will focus on getting things working out of the box with very little input from user.
You want to install Boxes if you just want a very safe and easy way to try out new operating systems or new (potentially unstable) versions of your favorite operating system(s), or need to connect to a remote machine (for example, in your office).
screenshot-00: https://appstream.debian.org/media/sid/org/gnome/Boxes.desktop/CE452C149D655E44ECDFFAFD6FFB66A0/screenshots/image-1_224x126.png [<none>]
screenshot-01: https://appstream.debian.org/media/sid/org/gnome/Boxes.desktop/CE452C149D655E44ECDFFAFD6FFB66A0/screenshots/image-2_224x126.png [<none>]
screenshot-02: https://appstream.debian.org/media/sid/org/gnome/Boxes.desktop/CE452C149D655E44ECDFFAFD6FFB66A0/screenshots/image-3_224x126.png [<none>]
screenshot-03: https://appstream.debian.org/media/sid/org/gnome/Boxes.desktop/CE452C149D655E44ECDFFAFD6FFB66A0/screenshots/image-4_224x126.png [<none>]
screenshot-04: https://appstream.debian.org/media/sid/org/gnome/Boxes.desktop/CE452C149D655E44ECDFFAFD6FFB66A0/screenshots/image-5_224x126.png [<none>]
source-00: gnome-boxes
source-id-00: gnome-boxes;3.36.3-1;amd64;debian-unstable-main
url{homepage}: https://wiki.gnome.org/Apps/Boxes
license: LGPL-2.1+
license-is-free: yes
management-plugin: packagekit
origin: debian-unstable-main
origin-appstream: debian-sid-main
rating: 65
review-rating: [0:0]
review-rating: [1:46]
review-rating: [2:27]
review-rating: [3:27]
review-rating: [4:40]
review-rating: [5:63]
reviews: 0
provides: 0
install-date: 1
category: Development
category: Emulator
category: System
{GnomeSoftware::FeatureTile-css}: border: 1px solid #ed8254; background: #fca937 url('/usr/share/gnome-software/featured-boxes.svg') 150% center / 60% auto no-repeat; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.05), 0 -1px rgba(0,0,0,0.05), 1px 0 rgba(0,0,0,0.1), 0 1px rgba(0,0,0,0.3), -1px 0 rgba(0,0,0,0.1);
{GnomeSoftware::PackagingFormat}: deb
{appstream::source-file}: /var/lib/app-info/yaml/deb.debian.org_debian_dists_sid_main_dep11_Components-amd64.yml.gz
{GnomeSoftware::Creator}: appstream
07:42:13:0402 Gs content rating system is guessed as IARC from C
07:42:13:0402 Gs Chaining cancellation from 0x5579a7d172e0 to 0x5579a8052d20
07:42:13:0402 Gs Chaining cancellation from 0x5579a7d172e0 to 0x5579a9640d20
07:42:13:0402 Gs Disconnecting cancellable 0x5579a7d172e0
07:42:13:0407 GsPluginOdrs got review data for org.gnome.Boxes.desktop from /home/k1/.cache/gnome-software/odrs/org.gnome.Boxes.desktop.json
07:42:13:0408 PK role now get-details
07:42:13:0411 Gs running get-alternates with refine-flags=require-origin,require-provenance,require-origin-hostname with interactive=True with timeout=60 on plugin=appstream on apps system/package/debian-unstable-main/desktop/org.gnome.Boxes.desktop/* took 9ms
07:42:13:0429 Gs Disconnecting cancellable 0x5579a7d172e0
07:42:13:0484 Gs emitting global waiting
07:42:13:0497 Gs emitting global setup
07:42:13:0775 Gs emitting global querying
07:42:13:0777 Gs emitting global finished
07:42:13:0778 Gs running refine with dedupe-flags=7 with refine-flags=require-size,require-rating,require-reviews,require-review-ratings,require-runtime with timeout=60 on apps system/package/debian-unstable-main/desktop/org.gnome.Boxes.desktop/* took 375ms
07:42:13:0843 Gs Disconnecting cancellable 0x5579a7d172e0
07:42:40:0354 Gs Chaining cancellation from 0x5579a958ef60 to 0x5579a95aaa60
07:42:40:0355 PK adding state 0x5579a964df00
07:42:40:0355 PK role now install-packages
07:42:40:0430 PK using frontend gnome
07:42:40:0430 Gs emitting global waiting
07:42:45:0378 Gs emitting global setup
07:42:45:0638 Gs emitting global querying
07:42:45:0638 Gs emitting global setup
07:42:45:0768 Gs emitting global downloading
07:42:49:0558 Gs Cancelling job with cancellable 0x5579a95aaa60
07:42:49:0559 PK cancelling /1406_eaeaddad
07:42:49:0882 Gs emitting global setup
07:42:49:0894 PK remove state 0x5579a964df00
07:42:49:0895 PK internal error: failed, but no error code: cancelled
07:42:49:0895 Gs plugin packagekit did not return error with cancellable set
07:42:49:0895 Gs ignoring error cancelled: Operation was cancelled
07:42:49:0895 Gs Operation was cancelled
07:42:49:0896 Gs Disconnecting cancellable 0x5579a958ef60
07:42:49:0907 Gs emitting global finished
07:43:01:0297 Gs First hourly updates check
07:43:01:0297 Gs Chaining cancellation from 0x5579a803d1e0 to 0x5579a9ce9660
07:43:01:0298 Gs Getting upgrades
07:43:01:0298 Gs Chaining cancellation from 0x5579a803d1e0 to 0x5579a956f860
07:43:01:0299 Gs no plugin could handle get-distro-updates
07:43:01:0300 Gs running get-distro-updates with dedupe-flags=7 with refine-flags=require-setup-action with timeout=60 took 2ms
07:43:01:0300 Gs no plugin could handle get-langpacks
07:43:01:0300 Gs no upgrades; withdrawing upgrades-available notification
07:43:01:0301 Gs running get-langpacks with dedupe-flags=7 with refine-flags=require-icon with timeout=60 with search=C took 3ms
07:43:01:0301 Gs Disconnecting cancellable 0x5579a803d1e0
07:43:01:0301 Gs no language pack found
07:43:01:0301 Gs Disconnecting cancellable 0x5579a803d1e0