EXPKEYSIG debian ubuntu

Fix EXPKEYSIG EB3E94ADBE1229CF

Microsoft <gpgsecurity@microsoft.com> — by Microsoft

Error message
EXPKEYSIG EB3E94ADBE1229CF Microsoft <gpgsecurity@microsoft.com>

Fix commands for Fedora

Method 1 Import from official URL

Imports the GPG key directly from the vendor and refreshes the package cache.

Fedora — bash
$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
$ sudo dnf check-update

Method 2 Import from keyserver via GnuPG

Fetches the key from a public keyserver, exports it in ASCII armor format, then imports into the RPM database.

Fedora — bash
$ gpg --keyserver hkps://keys.openpgp.org --recv-keys EB3E94ADBE1229CF
$ gpg --export --armor EB3E94ADBE1229CF | sudo rpm --import -
$ sudo dnf check-update

After importing the key

Run sudo apt-get update (or your distro's equivalent) again. If successful you should see Hit: lines with no EXPKEYSIG warnings. Still broken? Check that your /etc/apt/sources.list.d/ entry references the correct [signed-by=…] keyring path.