Fedora Account System
Red Hat Associate
Red Hat Customer
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.
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 ***