Corrigindo Ubuntu Key expired

Hoje ao atualizar o ubuntu apareceu:

An error occurred during the signature verification. The repository is not updated and the previous index files will be use
d. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1
E Yarn Packaging <yarn@dan.cx>

Nada que nosso amigo google e github não resolva:

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com

O que ocorre é que algumas chaves perdem a validade este foi o caso do Yarn, mas não apenas ele mas outros pacotes pode ter o mesmo problema. O comando acima resolve o problema.

Links:

https://github.com/yarnpkg/yarn/issues/7866