Score:0

Get stuck with expired key of a removed package

es flag

After accidentally switching my repository, I got the

failed to download repository information error from Software Updater.

I tried to do

$ sudo apt-get  update

And found that I have an expired key for https://repo.skype.com/deb stable InRelease. (Which I believe belong to skypeforlinux) I uninstall and reinstall skypeforlinux, then revert the repository. Now skypeforlinux has completely gone from my ubuntu software, and the expired key problem was not fixed. I tried to

$ sudo apt remove skypeforlinux

to remove the package, but I still got the key expired error.

I then did an even more stupid thing by removing the key:

sudo apt-key del <the expired key>

and got

GPG error: https://repo.skype.com/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

instead.

It doesn't seem to be a serious problem, but is annoying. What can I do to fix it?

ru flag
Remove the package, and then delete the repositories from your system. Microsoft has not updated the keys, or if they did they didn't tell people to install the newer keys before continuing to use it.
Rekkhan avatar
es flag
@ThomasWard I removed the repository and it works! Thanks a lot!
Score:1
ru flag

The Skype repository is a little wonky, as Microsoft has not updated the keys. Partly because Skype is eventually going away, and Teams is going to be the 'replacement'.

The only way to get rid of the warnings about the insecure repository is to remove the repository from your sources and then run apt update - it will no longer try and query the repository and as such you won't get your "NO_PUBKEY" or "EXP_SIG" notices.

Rekkhan avatar
es flag
Thanks a lot, it works!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.