Bug 2004604 - a removed package looks still installed in gnome-software, can't be installed again until reboot
Summary: a removed package looks still installed in gnome-software, can't be installed...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-software
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milan Crha
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedFreezeException AcceptedBlocker
Depends On:
Blocks: F35BetaFreezeException F35FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2021-09-15 16:19 UTC by Kamil Páral
Modified: 2021-09-22 13:09 UTC (History)
8 users (show)

Fixed In Version: gnome-software-41.0 gnome-software-41.0-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-22 13:09:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
bug demonstration (2.57 MB, video/webm)
2021-09-15 16:20 UTC, Kamil Páral
no flags Details
software verbose log (176.56 KB, text/plain)
2021-09-15 16:23 UTC, Kamil Páral
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gnome-software issues 1422 0 None None None 2021-09-15 16:31:22 UTC

Description Kamil Páral 2021-09-15 16:19:16 UTC
Description of problem:
When a package is removed in gnome-software, the "Open" button to launch it disappears, but the "recycle bin" button to remove it remains. The package looks still installed. It even appears in the Installed tab, and in all lists it's marked as "Installed". Further attempts to remove it end up with "Unable to remove X: no packages to remove" popup. Closing and reopening Software doesn't help. Only reboot helps (or killing the gnome-software process, of course).

Please see the attached video.

Version-Release number of selected component (if applicable):
PackageKit-1.2.4-2.fc35.x86_64
gnome-software-41~rc-2.fc35.x86_64

How reproducible:
always

Steps to Reproduce:
1. install a fresh F35 Workstation
2. search for a package, my current favorite is "soundconverter"
3. install the package
4. verify it is there by clicking Open and launching it, close it
5. remove the package, see the recycle bin icon is still there
6. try to remove it again, see and error popup
7. go to Installed tab, see it there
8. search for it, see it marked as Installed
9. close and reopen Software, see that the problem persists

Comment 1 Kamil Páral 2021-09-15 16:20:29 UTC
Created attachment 1823375 [details]
bug demonstration

See this reproducer.

Comment 2 Kamil Páral 2021-09-15 16:23:35 UTC
Created attachment 1823388 [details]
software verbose log

Comment 3 Kamil Páral 2021-09-15 16:25:32 UTC
This seems to be a Beta blocker:
"The installed system must be able appropriately to install, remove, and update software with the default tool for the relevant software type in all release-blocking desktops (e.g. default graphical package manager). This includes downloading of packages to be installed/updated. "
https://fedoraproject.org/wiki/Fedora_35_Beta_Release_Criteria#Installing.2C_removing_and_updating_software

Comment 4 Milan Crha 2021-09-15 16:31:22 UTC
Thanks for a bug report. The restart is not needed, there is enough to close the gnome-software (not only the window, because the process lefts running in the background).

This had been reported upstream as [1] and there is a proposed merge request [2], but it's not clear whether it'll be accepted or not at the moment.

By the way, this could happen also in f34, f33, ...

[1] https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1422
[2] https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/984

Comment 5 Ben Cotton 2021-09-15 16:51:30 UTC
I can't reproduce this.

PackageKit-1.2.4-2.fc35.x86_64
gnome-software-41~rc-2.fc35.x86_64

Comment 6 Stephen Gallagher 2021-09-17 19:55:57 UTC
Does the removal occur and GNOME Software doesn't report it correctly, or is the RPM database in an unknown state?

If it's the former, it's cosmetic and I'd vote -1 blocker. It can be fixed with an update.

Does it only affect the RPM install or is it causing issues with flatpaks as well?

Comment 7 Adam Williamson 2021-09-17 22:14:28 UTC
AIUI it's the former.

We have -6 for beta blocker in the ticket, so rejecting. Won't add the RejectedBlocker tag as it's still proposed for Final.

Comment 8 Milan Crha 2021-09-20 08:55:24 UTC
The fix for this landed for the 41.0 release, which is currently built in the f35-gnome tag and will be available as an update (I suppose) later this week, with the rest of the GNOME 41.0 updates.

Comment 9 Adam Williamson 2021-09-20 16:50:38 UTC
it would be good to have just this fix as a standalone update, I think, in case we want to pull it in as an FE. at this point pulling in the whole of 41 final is a big ask.

Comment 10 Geoffrey Marr 2021-09-20 17:43:12 UTC
Discussed during the 2021-09-20 blocker review meeting: [0]

The decision to classify this bug as an "AcceptedBlocker (Final)" was made as it violates the following criterion:

"The installed system must be able appropriately to install, remove, and update software with the default tool for the relevant software type in all release-blocking desktops"

[0] https://meetbot.fedoraproject.org/fedora-blocker-review/2021-09-20/f35-blocker-review.2021-09-20-16.00.txt

Comment 11 Fedora Update System 2021-09-20 19:37:41 UTC
FEDORA-2021-9f95bdf947 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-9f95bdf947

Comment 12 Fedora Update System 2021-09-20 20:55:27 UTC
FEDORA-2021-9f95bdf947 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-9f95bdf947`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-9f95bdf947

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Adam Williamson 2021-09-21 22:59:16 UTC
Proposing as a Beta freeze exception - as an obvious polish issue visible on first boot after install I think this is worth fixing since we have a fix.

Comment 14 Adam Williamson 2021-09-21 23:28:26 UTC
+4 for BetaFE in https://pagure.io/fedora-qa/blocker-review/issue/457 , marking accepted.

Comment 15 Fedora Update System 2021-09-22 00:15:57 UTC
FEDORA-2021-9f95bdf947 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Kamil Páral 2021-09-22 08:49:42 UTC
Needs verification.

Comment 17 Kamil Páral 2021-09-22 13:09:47 UTC
Works fine with gnome-software-41.0-1.fc35.x86_64.


Note You need to log in before you can comment on or make changes to this bug.