Bug 2479600

Summary: Microsoft repo key breaks causes Gnome Software to crash
Product: [Fedora] Fedora Reporter: Masoud Moradi <masoudmoradiw>
Component: gnome-softwareAssignee: Milan Crha <mcrha>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 44CC: gnome-sig, mcrha, rhughes
Target Milestone: ---Keywords: Desktop
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://discussion.fedoraproject.org/t/microsoft-keys-break-gnome-software/191707
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-05-18 16:16:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Masoud Moradi 2026-05-18 15:59:25 UTC
Using the instructions for Microsoft Azure CLI installations as example: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest&pivots=dnf

Everything works as expected, DNF reports no issues, and the package azire-cli installs fine. But it breaks Gnome Software and causes it to crash shortly after launch!

Based on the output of "gnome-software --verbose" the crash happens after GsDnf5 function "gs_dnf5_repo_key_import_request_cb" tries 8 times to "Create a new session" for the Microsoft key but fails.

Meanwhile "dnf update --refresh" itself shows no errors regarding the repository and packages can be installed from it.

Reproducible: Always

Steps to Reproduce:
1. sudo rpm --import https://packages.microsoft.com/keys/microsoft-2025.asc
2. sudo dnf install -y https://packages.microsoft.com/config/rhel/10/packages-microsoft-prod.rpm
3. gnome-software --verbose
Actual Results:
Gnome Software crashes when it gets to checking the Microsoft key:

GsDnf5 gs_dnf5_repo_key_import_request_cb: key_id:'F748182B' user_ids:["Microsoft Corporation - General GPG Signer <gpgsign>"] key_fingerprint:'AA86F75E427A19DD33346403EE4D7792F748182B' key_url:'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft' timestamp:1700038188
13:28:19:684 GsDnf5 Creating new session
13:28:19:685 GsDnf5 check-key-source: Failed to open new session: Failed to open session: Cannot open new session - maximal number of simultaneously opened sessions achieved.
GLib g_variant_is_object_path: assertion 'string != NULL' failed
GLib g_variant_new_object_path: assertion 'g_variant_is_object_path (object_path)' failed

Expected Results:
DNF itself doesn't have any problem with the Microsoft repository and it can be used to install packages, also the DNF Refresh shows no issues with the repo:

Microsoft Production       100% |   2.2 KiB/s |   2.3 KiB |  00m01s

Additional Information:
Removing the Microsoft key and repo fixes the issue:

1. rpmkeys --list
Copy the fingerprint for the Microsoft key, same as the one shown in gnome-software logs.
2. sudo rpmkeys --delete aa86f75e427a19dd33346403ee4d7792f748182b
3. sudo rm -f /etc/yum.repos.d/microsoft-prod.repo

Now running "gnome-software --verbose" works flawlessly.

Comment 1 Milan Crha 2026-05-18 16:16:57 UTC
Thanks for a bug report. This had been already filled, thus I mark this as a duplicate of it.

*** This bug has been marked as a duplicate of bug 2476951 ***