Installing Microsoft’s keys on Fedora 44 cause Gnome Software to crash and not start properly.
To reproduce the issue, you could for example follow the instructions on how to install Azure CLI:
sudo rpm --import https://packages.microsoft.com/keys/microsoft-2025.ascsudo dnf install -y https://packages.microsoft.com/config/rhel/10/packages-microsoft-prod.rpm- [Optional]
sudo dnf install azure-cli
Package az installs fine and performing dnf upgrade --refresh or flatpack update both work well with no errors.
But Gnome Software will no longer open (or opens and closes shortly after).
Checking the output by running gnome-software --verbose shows that it fails in checking the Microsoft keys, tries 8 times, then crashes:
13:28:16:635 GsDnf5 gs_dnf5_repo_key_import_request_cb: key_id:'F748182B' user_ids:["Microsoft Corporation - General GPG Signer <gpgsign@microsoft.com>"] key_fingerprint:'AA86F75E427A19DD33346403EE4D7792F748182B' key_url:'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft' timestamp:1700038188
13:28:16:635 GsDnf5 Creating new session
13:28:17:445 GsDnf5 gs_dnf5_repo_key_import_request_cb: key_id:'F748182B' user_ids:["Microsoft Corporation - General GPG Signer <gpgsign@microsoft.com>"] key_fingerprint:'AA86F75E427A19DD33346403EE4D7792F748182B' key_url:'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft' timestamp:1700038188
13:28:17:445 GsDnf5 Creating new session
13:28:17:829 GsDnf5 gs_dnf5_repo_key_import_request_cb: key_id:'F748182B' user_ids:["Microsoft Corporation - General GPG Signer <gpgsign@microsoft.com>"] key_fingerprint:'AA86F75E427A19DD33346403EE4D7792F748182B' key_url:'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft' timestamp:1700038188
13:28:17:829 GsDnf5 Creating new session
13:28:18:196 GsDnf5 gs_dnf5_repo_key_import_request_cb: key_id:'F748182B' user_ids:["Microsoft Corporation - General GPG Signer <gpgsign@microsoft.com>"] key_fingerprint:'AA86F75E427A19DD33346403EE4D7792F748182B' key_url:'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft' timestamp:1700038188
13:28:18:196 GsDnf5 Creating new session
13:28:18:549 GsDnf5 gs_dnf5_repo_key_import_request_cb: key_id:'F748182B' user_ids:["Microsoft Corporation - General GPG Signer <gpgsign@microsoft.com>"] key_fingerprint:'AA86F75E427A19DD33346403EE4D7792F748182B' key_url:'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft' timestamp:1700038188
13:28:18:549 GsDnf5 Creating new session
13:28:18:942 GsDnf5 gs_dnf5_repo_key_import_request_cb: key_id:'F748182B' user_ids:["Microsoft Corporation - General GPG Signer <gpgsign@microsoft.com>"] key_fingerprint:'AA86F75E427A19DD33346403EE4D7792F748182B' key_url:'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft' timestamp:1700038188
13:28:18:942 GsDnf5 Creating new session
13:28:19:325 GsDnf5 gs_dnf5_repo_key_import_request_cb: key_id:'F748182B' user_ids:["Microsoft Corporation - General GPG Signer <gpgsign@microsoft.com>"] key_fingerprint:'AA86F75E427A19DD33346403EE4D7792F748182B' key_url:'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Microsoft' timestamp:1700038188
13:28:19:325 GsDnf5 Creating new session
13:28:19:684 GsDnf5 gs_dnf5_repo_key_import_request_cb: key_id:'F748182B' user_ids:["Microsoft Corporation - General GPG Signer <gpgsign@microsoft.com>"] 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.
13:28:19:685 GLib g_variant_is_object_path: assertion 'string != NULL' failed
13:28:19:685 GLib g_variant_new_object_path: assertion 'g_variant_is_object_path (object_path)' failed
Removing the Microsoft key and Repository immediately fixes the issue:
sudo rpmkeys --delete aa86f75e427a19dd33346403ee4d7792f748182b
(or replace with the key_fingerprint shown in the log above or in the output of “rpmkeys --list”)
sudo rm -f /etc/yum.repos.d/microsoft-prod.repo
I searched online and couldn’t find reports on this. If it’s a duplicate or if I’m doing something wrong, please do tell me! ![]()
I’ve also tried reinstalling gnome-software and removing it’s data under .local and .cache directories, also done the pkcon refresh force, didn’t make any difference.