Description of problem: Trying to uninstall Audacity using GNOME Software by clicking "Uninstall" button in "Installed" applications list or application detail view ends with error message: "Unable to remove Audacity: no packages to remove". Version-Release number of selected component (if applicable): GNOME Software version 41.4 How reproducible: Always Steps to Reproduce: 1. Install Audacity 3.0.2 from "Fedora Linux (RPM)" repository using GNOME Software. 2. Try to uninstall Audacity using GNOME Software Actual results: Error message: "Unable to remove Audacity: no packages to remove" Expected results: Audacity is uninstalled. Additional info: While Audacity was installed form "Fedora Linux (RPM)" repository, opening details view shows that it is not available in repositories list and "rpmfusion-free-35 (RPM)" is selected instead. I presume that GNOME Software tries to uninstall application from incorrect repository and fails. Is there any additional data I could collect to help solve this issue?
*** Bug 2059549 has been marked as a duplicate of this bug. ***
Thanks for a bug report. I tried to reproduce it here and it seems like the audacity is provided only by the "Fedora RPM", at least here. The "RPM Fusion" does not provide it. That may mean the repository source had been misplaced somehow on your machine, leading to the failure, as you said. It works fine here. Will there change anything when you run (as a regular user): $ pkcon refresh force which will re-download repositories information. I suggest to restart the gnome-software after the refresh, which can be done as: $ gnome-software --quit $ gnome-software
After running all three commands you've provided, I still can see "rpmfusion-free-updates" repository as available to install "Audacity" from. Installed package name is "audacity-freeworld". At least this package can be uninstalled using GNOME Software without any error messages. As a test I've tried enabling "RPM Fusion" repositories on Live CD version of Fedora 35, but even then only Flatpak and standard RPM repositories show up. Might be some edge case on my system here, as it was upgraded from Fedora 34. Also might be a regression, as Live CD version did not contain any current updates.
Created attachment 1863733 [details] Available installation sources
Interesting, the gnome-software did not offer me the Audacity application from the rpmfusion repository yesterday, but trying today it is offered. I installed it, restarted gnome-software, then went into the Installed page and there clicked on the Uninstall button. I've been asked for the root password and then the application was properly removed. I see the difference though, the Fedora repository is not proposed in the Sources for that application, only the rpm-fusion is offered for the RPM source. Running: $ pkcon search audacity I get these results: Searching by details [=========================] Starting [=========================] Finished [=========================] Available audacity-3.0.2-5.fc35.x86_64 (fedora) Multitrack audio editor Available audacity-freeworld-3.1.3-1.fc35.x86_64 (rpmfusion-free-updates) Multitrack audio editor Unavailable audacity-freeworld-3.0.5-2.fc35.x86_64 (rpmfusion-free) Multitrack audio editor Available audacity-manual-3.0.2-5.fc35.noarch (fedora) Manual for Audacity - Offline Install Thus even the version in the Fedora repository is the oldest, it still should be offered in the Software. Especially when you had installed it from the Fedora repo. When I install the audacity package from the Fedora repository on the command line, I get the same broken behavior as you see. The problem here is that the Fedora repository is ignored in the Sources for some reason.
When I enable updates-testing repository and search with pkcon for example for 'firefox', I get: $ pkcon search name firefox Installed firefox-96.0-1.fc35.x86_64 (installed:updates) Mozilla Firefox Web browser Available firefox-97.0.1-2.fc35.x86_64 (updates) Mozilla Firefox Web browser Available firefox-93.0-2.fc35.x86_64 (updates-testing) Mozilla Firefox Web browser meaning three different versions from three different repositories, but you surely want to see only the latest version available in the sources. That makes perfect sense for to-be-installed applications. The problem is with already installed applications. The rpmfusion provides newer version than Fedora, even the 'fedora' repository has the application installed. I checked the Software and it does not ask PackageKit what packages are installed, this is determined through the appstream data, which is provided by respective applications. As the appstream data does not know from which origin the app is installed, it picked the one which has the latest version (I did not debug this deeply, maybe the reason is different). I'm not sure what to do with this. I moved this upstream for further investigation. Please see [1] for any further updates. [1] https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1668