[Bug 2066183] Re: AppStream metadata allow user uninstallation of PackageKit
AsciiWolf
2066183 at bugs.launchpad.net
Fri Feb 7 20:06:38 UTC 2025
$ dpkg -la | grep packagekit
ii gir1.2-packagekitglib-1.0 1.2.8-2ubuntu1.2 amd64 GObject introspection data for the PackageKit GLib library
ii gstreamer1.0-packagekit 1.2.8-2ubuntu1.2 amd64 GStreamer plugin to install codecs using PackageKit
ii libpackagekit-glib2-18:amd64 1.2.8-2ubuntu1.2 amd64 Library for accessing PackageKit using GLib
ii packagekit 1.2.8-2ubuntu1.2 amd64 Provides a package management service
ii packagekit-tools 1.2.8-2ubuntu1.2 amd64 Provides PackageKit command-line tools
$ grep compulsory_for_desktop /usr/share/metainfo/org.freedesktop.packagekit.metainfo.xml
<compulsory_for_desktop>Cinnamon</compulsory_for_desktop>
<compulsory_for_desktop>GNOME</compulsory_for_desktop>
<compulsory_for_desktop>KDE</compulsory_for_desktop>
<compulsory_for_desktop>LXQt</compulsory_for_desktop>
<compulsory_for_desktop>MATE</compulsory_for_desktop>
<compulsory_for_desktop>Pantheon</compulsory_for_desktop>
<compulsory_for_desktop>Unity</compulsory_for_desktop>
<compulsory_for_desktop>XFCE</compulsory_for_desktop>
I can confirm that the compulsory_for_desktop tag is present in
PackageKit version 1.2.8-2ubuntu1.2 from the noble-proposed repository.
I can also confirm that "PackageKit" is no longer uninstallable in
AppStream-based software centers such as GNOME Software or KDE Discover
(it is still uninstallable in App Center, but that is a different
issue).
Thanks!
** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to packagekit in Ubuntu.
https://bugs.launchpad.net/bugs/2066183
Title:
AppStream metadata allow user uninstallation of PackageKit
Status in PackageKit:
Fix Released
Status in packagekit package in Ubuntu:
Fix Released
Status in packagekit source package in Noble:
Fix Committed
Bug description:
[ Impact ]
An AppStream metainfo file was added in PackageKit since v1.2.8.
Unfortunately, this file causes PackageKit to show in App Center,
GNOME Software, KDE Discover and other package management GUIs and
allow users to click an "Uninstall" button.
The appstream metadata should be updated to specify that it cannot be
uninstalled. This was implemented upstream in version 1.3.0:
https://github.com/PackageKit/PackageKit/commit/d8f84f7e0a017e0b4df1e08a2a6be832c9fb3611
[ Test plan ]
1. Install gnome-software
2. Run `gnome-software --details org.freedesktop.PackageKit`
3. Verify that "Software" opens a page about PackageKit
4. Verify that there is no button to uninstall it
[ Where problems could occur ]
The patch only changes the metainfo.xml file adding
<compulsory_for_desktop> tags. The tag is supported starting from
appstream version 0.6 (dating 2014), so the file will be parsed
without problems.
To manage notifications about this bug go to:
https://bugs.launchpad.net/packagekit/+bug/2066183/+subscriptions
More information about the foundations-bugs
mailing list