Bug 2015809

Summary: app can't be installed&removed or removed&installed, without Discover restart
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: plasma-discoverAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: aleixpol, awilliam, bcotton, geraldo.simiao.kutz, kde-sig, nate, rdieter, robatino
Target Milestone: ---Keywords: CommonBugs
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: https://ask.fedoraproject.org/t/we-are-testing-a-new-common-issues-category-and-process/18916 AcceptedFreezeException RejectedBlocker https://fedoraproject.org/wiki/Common_F35_bugs#discover-cant-reinstall
Fixed In Version: plasma-discover-5.23.2-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 16:34:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1891955, 1891956    
Attachments:
Description Flags
bug demonstration video
none
journal
none
rpm-qa none

Description Kamil Páral 2021-10-20 07:15:19 UTC
Description of problem:
In Discover, if you install an app, you can't uninstall it shortly afterwards, you'll only see "Package not found" error. Similarly, if you uninstall an app, you can't install it again, because of the same error.

This prevents people from:
1. Quickly trying out different apps, e.g. when looking for a good image editor. "This one? No. This one? No. This one? Yes, I like it, I'll keep it."
2. Reinstalling an app if they experience some troubles with it.

Closing and reopening Discover makes Discover recover from the problem, and you can then remove or install the app that previously was producing the errors.

Version-Release number of selected component (if applicable):
plasma-discover-5.23.0-3.fc35
PackageKit-1.2.4-2.fc35

How reproducible:
always

Steps to Reproduce:
1. install an RPM app
2. try to remove it, it fails with "Package not found"
3. restart Discover
4. remove the app, now it works
5. try to install the app again, it fails again with "Package not found"

Comment 1 Kamil Páral 2021-10-20 07:15:53 UTC
Created attachment 1834970 [details]
bug demonstration video

Comment 2 Kamil Páral 2021-10-20 07:32:00 UTC
Created attachment 1834971 [details]
journal

The relevant journal error seems to be:

Oct 20 09:29:22 fedora PackageKit[2169]: new remove-packages transaction /203_dcbeeeeb scheduled from uid 1000
Oct 20 09:29:22 fedora plasma-discover[2378]: percentage cannot be calculated
Oct 20 09:29:22 fedora plasma-discover[2378]: percentage cannot be calculated
Oct 20 09:29:22 fedora plasma-discover[2378]: percentage cannot be calculated
Oct 20 09:29:22 fedora plasma-discover[2378]: percentage cannot be calculated
Oct 20 09:29:22 fedora PackageKit[2169]: remove-packages transaction /203_dcbeeeeb from uid 1000 finished with failed after 137ms
Oct 20 09:29:22 fedora plasma-discover[2378]: PackageKit error: PackageKit::Transaction::ErrorPackageNotFound "Package not found" "Failed to find kmymoney;5.1.2-2.fc35;x86_64;fedora"

Comment 3 Kamil Páral 2021-10-20 07:32:17 UTC
Created attachment 1834972 [details]
rpm-qa

Comment 4 Kamil Páral 2021-10-20 07:32:54 UTC
Proposing for a blocker discussion.

Comment 5 Kamil Páral 2021-10-20 08:01:40 UTC
This doesn't seem to be a recent regression in the last-minute fixes we did for plasma-discover, because 5.23.0-1.fc35 also exhibits this bug.

Comment 6 Adam Williamson 2021-10-20 16:36:04 UTC
Does F34 behave the same?

Comment 7 Kamil Páral 2021-10-20 19:49:51 UTC
(In reply to Adam Williamson from comment #6)
> Does F34 behave the same?

Yes, F34 clean KDE Live install behaves the same.

Comment 8 Ben Cotton 2021-10-21 18:34:58 UTC
In today's Go/No-Go meeting we agreed: It is functional enough to ship and fix in an update, but we'd like to have it in the release if a fix is available and we slip
https://meetbot.fedoraproject.org/fedora-meeting/2021-10-21/f35-final-go_no_go-meeting.2021-10-21-17.00.log.html#l-130

Comment 9 Nate Graham 2021-10-21 18:45:23 UTC
Known upstream bug: https://bugs.kde.org/show_bug.cgi?id=443615

Comment 10 Aleix Pol 2021-10-21 21:32:31 UTC
I spent some time looking into this one yesterday. It's not clear to me if it's a packagekit dnf backend but or Discover's, I guess I better see if we can workaround it from within Discover anyway.

Problem is that we are using the package id that the install transaction gives us as the new pkgid, I can change it to issue a new resolve query instead.

Comment 11 Fedora Update System 2021-10-28 18:48:34 UTC
FEDORA-2021-35e9884fd8 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-35e9884fd8

Comment 12 Fedora Update System 2021-11-04 14:08:11 UTC
FEDORA-2021-f7d19c8901 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-f7d19c8901`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-f7d19c8901

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

Comment 13 Geraldo Simião 2021-11-04 20:16:36 UTC
The update https://bodhi.fedoraproject.org/updates/FEDORA-2021-f7d19c8901 seems to fix this bug, tested here: installed and removed software without errors, and without discover restart.

Comment 14 Fedora Update System 2021-11-16 16:34:49 UTC
FEDORA-2021-f7d19c8901 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.