Bug 2271783 - Missing 'firefox' package in appstream-data-40-6.fc40
Summary: Missing 'firefox' package in appstream-data-40-6.fc40
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: appstream-data
Version: 40
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2275212 (view as bug list)
Depends On:
Blocks: 2279881 2279886 2279887 2279889 2279892 2279897 2279899
TreeView+ depends on / blocked
 
Reported: 2024-03-27 10:46 UTC by Adrien D
Modified: 2024-05-11 01:30 UTC (History)
8 users (show)

Fixed In Version: appstream-data-40-7.fc40
Clone Of:
Environment:
Last Closed: 2024-05-11 01:30:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
No RPM Source displayed, for Fedora (192.05 KB, image/png)
2024-03-29 17:47 UTC, Adrien D
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github PackageKit PackageKit issues 737 0 None open `pkcon what-provides` does not return anything 2024-04-02 14:19:33 UTC

Description Adrien D 2024-03-27 10:46:08 UTC
On Fedora Workstation 40, unable to uninstall Firefox.
On the GNOME Activities view (same from pin icon), when i right click on Firefox Icon and selecting "Show details" opens GNOME Software but i only have "Install" button (no "Open" button and Trash icon to delete app).
No problem with Text editor.
The view opened on GNOME Software is Firefox from Feora Flatpak repo (Indeed Firefox from Flatpak not installed, maybe that's why no way to open/uninstall Firefox)
Searching Firefox on GNOME Software "Firefox" list 2 Firefox, 1 from Flatpak Flathub repo and 1 from Flatpak Fedora repo.

Reproducible: Always

Steps to Reproduce:
1. Install Fedora Workstation
2. Right Clic on Firefox Icon, sellect Open Details
3. See you can't remove Firefox
Actual Results:  
Wrong Firefox page displayed in GNOME Software

Expected Results:  
Possibility to Uninstall Firefox

Tested on 3 Fedora Workstation, same issue.

Comment 1 Milan Crha 2024-03-27 13:56:16 UTC
Thanks for a bug report. The "Firefox from Fedora Flatpak" is only preselected for you. Below the Install button is written which source you've selected and when you click on it (there's also an arrow beside the source name), you'll get a list of the alternatives. One of them will be an RPM version and when you select it, you'll be able to uninstall it.

It's not a wrong page, Fedora prefers Flatpaks, thus you have it offered.

Comment 2 Adrien D 2024-03-29 17:46:51 UTC
No, on a fresh install, the selection can't display "RPM source", only flatpak from Fedora.
Tested with Fedora Workstation 40 Frash install

Comment 3 Adrien D 2024-03-29 17:47:33 UTC
Created attachment 2024180 [details]
No RPM Source displayed, for Fedora

Comment 4 Milan Crha 2024-04-02 14:12:35 UTC
Just by accident, I installed a Fedora 40 machine from Fedora-Workstation-Live-x86_64-40_Beta-1.10.iso few hours ago and I can reproduce the problem too. When I search for the "firefox" in the Software it offers me two options:

   system/flatpak/fedora/org.mozilla.Firefox/stable

and

   system/flatpak/flathub/org.mozilla.firefox/stable

where one is from the "Fedora Linux" flatpak repository and the other one from Flathub. None of these is installed (there would be a green checkmark for it) and as their IDs do not match (one uses upper case 'F' in the 'Firefox'), they are not shown as one app with alternatives.

When I open the Installed page the mentioned Firefox app there is:

   system/*/*/org.mozilla.firefox/*

and when searching in the Software's --verbose log I see:

   13:49:26:845 Gs  nothing adopted system/*/*/org.mozilla.firefox/*

which explains why the RPM version was not found.

When I run:

   dnf provides /usr/share/applications/org.mozilla.firefox.desktop

it returns several firefox-124.0.1-2.fc40.x86_64 packages, but when I run:

   pkcon what-provides /usr/share/applications/org.mozilla.firefox.desktop

then it returns no hit. The pkcon is a PackageKit tool and gnome-software uses PackageKit for packages.

It looks like `pkcon what-provides` is broken, because I get no hist for other apps, like:

   pkcon what-provides /usr/share/applications/yelp.desktop

I'm moving this to PackageKit for further investigation. I tested this with PackageKit-1.2.8-3.fc40.x86_64.

Comment 5 Milan Crha 2024-04-02 14:19:34 UTC
I opened this upstream for better visibility:
https://github.com/PackageKit/PackageKit/issues/737

Comment 6 Milan Crha 2024-04-16 07:24:29 UTC
*** Bug 2275212 has been marked as a duplicate of this bug. ***

Comment 7 Milan Crha 2024-04-16 07:27:15 UTC
Neal, I guess this can be a problem. Would you mind to have a look upstream, please?

Comment 8 Milan Crha 2024-04-17 10:16:16 UTC
I did some more investigation here and while the PackageKit's what-provides returns nothing, it's not the root cause of the problem. I can use gnome-45 on Fedora 40 or gnome-46 on Fedora 39, both using the same PackageKit, still only on Fedora 39 the RPM-based Firefox is recognized and can be viewed in the app details, but the Fedora 40 machine does not see it properly.

I investigated it down to the appstream-data, the /usr/share/swcatalog/xml/fedora.xml.gz does not contain `firefox` package. That's with appstream-data-40-6.fc40.noarch. It'll be good to verify what else is missing, and/or what else broke.

I'm moving this to the appstream-data package, the "what-provides" is not a Fedora-specific problem, thus it'll be better dealt with upstream.

Comment 9 Milan Crha 2024-04-26 05:20:34 UTC
Adam, I'm not sure how to "escalate" this. See bug #2277256 what else can be broken. It gives poor user experience of the Fedora 40, if nothing else.

Comment 10 Adam Williamson 2024-04-26 06:07:57 UTC
I don't really know either. You can try poking Richard on RH internal channels, I guess...

Comment 11 Milan Crha 2024-04-26 07:24:55 UTC
Okay, I'll do it. Thank you.

Comment 12 Fedora Update System 2024-05-07 13:04:00 UTC
FEDORA-2024-76352b2328 (appstream-data-40-7.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-76352b2328

Comment 13 Fedora Update System 2024-05-08 02:21:35 UTC
FEDORA-2024-76352b2328 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-76352b2328`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-76352b2328

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

Comment 14 Fedora Update System 2024-05-11 01:30:47 UTC
FEDORA-2024-76352b2328 (appstream-data-40-7.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


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