Apt-get update yarn error

I am running Ghost on a standard DigitalOcean 18.04 droplet. When running sudo apt-get update I am getting the following error. It doesn’t seem to be causing a problem at present.

Error message is:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E

W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E

W: Some index files failed to download. They have been ignored, or old ones used instead.

Any idea on what I need to do to fix this?

You need to “reinstall” yarn by following the instructions on their site.

A bit more in depth: For whatever reason, yarn changed their signing keys at the beginning of the year, so your system doesn’t have the key to verify that yarn endorses the file. When you “reinstall” yarn, their new key is added to your system, which allow your system to trust the new version of yarn.

Note: You don’t need yarn to use ghost-cli. Ghost uses yarn, but everything’s handled internally

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.