After a recent apt update && apt full-upgrade
I started getting the following error when running apt full-upgrade
subsequently:
Get:4 https://repo.skype.com/deb stable InRelease [4,502 B]
Err:4 https://repo.skype.com/deb stable InRelease
The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <[email protected]>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.skype.com/deb stable InRelease: The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <[email protected]>
W: Failed to fetch https://repo.skype.com/deb/dists/stable/InRelease The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Is there a way to correct this, or should I just wait for Microsoft/Canonical to produce/update the necessary key signatures?
The key has now been updated, you can install it with:
curl https://repo.skype.com/data/SKYPE-GPG-KEY | sudo apt-key add -
The validity of the signature key has expired, and only after a few days Microsoft generated a new key. The key replacement in your system is not automatic and you need to delete the old key and add the new one.
There are two ways two solve the issue: one, using the traditional
apt-key add
command, the other one adding manually the new key to the keyring.# Solution valid until Ubuntu 21.04 (including it)
You can delete the no longer valid key:
and then re-add the new valid key:
Running
sudo apt update && sudo apt upgrade
you should see no errors.# Solution valid in Ubuntu 21.04 and future releases
When you try to add an APT repository key using
apt-key
in Ubuntu, you may see the following message:The apt-key man page mentions that:
So, if you use a version of Ubuntu until 21.04, you are ok using
apt-key del
andapt-key add
, but for the following versions you must manually add the key in the keyring (in Ubuntu 21.04 both solutions work perfectly: I tested both of them).You can delete the no longer valid key:
Download the key and add it to the keyring:
Open the
skype-stable.list
file......and modify the first line in this way:
Running
sudo apt update && sudo apt upgrade
you should see no errors.