Bug 432691 - Can't uninstall PackageKit apps
Summary: Can't uninstall PackageKit apps
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: PackageKit (other bugs)
Version First Reported In: 5.20.90
Platform: Other Linux
: VHI grave
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL: https://bugzilla.opensuse.org/show_bu...
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-02-09 15:26 UTC by Nate Graham
Modified: 2025-09-08 16:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Can't uninstall kolourpaint (370.95 KB, video/mp4)
2021-02-09 15:26 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2021-02-09 15:26:06 UTC
Created attachment 135532 [details]
Can't uninstall kolourpaint

See attached screen recording. I can't uninstall PackageKit apps. Flatpak apps can be uninstalled though.

While uninstalling, pkmon says:


Transactions:
 1      /10_dcaedaad
/10_dcaedaad    allow_cancel 1
/10_dcaedaad    role         remove-packages
/10_dcaedaad    status       setup
/10_dcaedaad    percentage   10
/10_dcaedaad    percentage   40
/10_dcaedaad    status       dep-resolve
/10_dcaedaad    percentage   100
/10_dcaedaad    percentage   0
/10_dcaedaad    percentage   100
/10_dcaedaad    status       finished
/10_dcaedaad    exit code: success
Transactions:
 [none]
Transactions:
 1      /11_ceaadabd
/11_ceaadabd    allow_cancel 1
/11_ceaadabd    role         remove-packages
/11_ceaadabd    status       remove
/11_ceaadabd    percentage   10
/11_ceaadabd    percentage   40
/11_ceaadabd    status       dep-resolve
/11_ceaadabd    percentage   100
/11_ceaadabd    status       remove
/11_ceaadabd    percentage   0
/11_ceaadabd    percentage   100
/11_ceaadabd    status       finished
/11_ceaadabd    exit code: success
Transactions:
 [none]



Howeve the app is not actually uninstalled.
Comment 1 Nate Graham 2021-02-09 15:52:16 UTC
`pkcon remove kolourpaint` works:


nate@Liberator:~/kde/src/kconfigwidgets$  (master) pkcon remove kolourpaint
Resolving                     [=========================]         
Testing changes               [=========================]         
Finished                      [                         ] (0%)  
The following packages have to be removed:
 kolourpaint-20.12.2-1.1.x86_64 Paint Program
 kolourpaint-lang-20.12.2-1.1.noarch    Translations for package kolourpaint
Proceed with changes? [N/y] y

                              [=========================]         
Removing                      [=========================]         
Waiting for authentication    [=========================]         
Removing packages             [=========================]         
Resolving dependencies        [=========================]         
Removing packages             [=========================]         
Finished                      [=========================]         
nate@Liberator:~/kde/src/kconfigwidgets$  (master) 
nate@Liberator:~/kde/src/kconfigwidgets$  (master) pkcon get-details kolourpaint
Resolving                     [                         ] (0%)  More than one package matches:
1. kolourpaint-20.12.2-1.1.x86_64 [repo-oss]
2. kolourpaint-20.12.2-1.1.i586 [repo-oss]
Comment 2 Aleix Pol 2021-02-10 00:55:19 UTC
Maybe this is something that someone from opensuse could take a look and maybe see what's happening?

PackageKit too seems to think the removal was a success on the pkmon trace you showed.
Comment 3 Fabian Vogt 2021-02-21 15:18:23 UTC
Does it work immediately after running "pkcon refresh"? If so, you're most likely hitting https://bugzilla.opensuse.org/show_bug.cgi?id=1180597.
Comment 4 Nate Graham 2021-02-22 00:27:13 UTC
Yes it does. Thanks for that.
Comment 5 Fabian Vogt 2021-03-02 14:25:37 UTC
Reopening: According to the PackageKit maintainer this is because discover uses the wrong package ID for removal.

method call time=1614626927.297372 sender=:1.124 -> destination=org.freedesktop.PackageKit serial=230 path=/1_ddbceacc; interface=org.freedesktop.PackageKit.Transaction; member=RemovePackages
   uint64 4
   array [
      string "kolourpaint;21.03.70git.20210227T162420~2f21b195-ku.13.1;x86_64;KUA"
   ]
   boolean true
   boolean false

This package ID refers to a package in the repo, which can be used for installation and getting info, but not be removed. For removal, it has to use the system package ID, which would be "kolourpaint;21.03.70git.20210227T162420~2f21b195-ku.13.1;x86_64;installed" in this case.
Comment 6 Nate Graham 2021-04-29 16:16:14 UTC
This seems to be fixed now, either by something in Discover, or something in openSUSE Tumbleweed.