codebuilds
codebuilds copied to clipboard
Public key is not available: NO_PUBKEY 0CC3FD642696BFC8
I was following the instruction here: https://www.hanselman.com/blog/HowToInstallVisualStudioCodeOnARaspberryPi4InMinutes.aspx on installing VSCODE on an RPi.
The article calls for the following commands
sudo -s
. <( wget -O - https://code.headmelted.com/installers/apt.sh )
This yields the following error
Hit:5 https://packagecloud.io/headmelted/codebuilds/debian stretch InRelease
Err:5 https://packagecloud.io/headmelted/codebuilds/debian stretch InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0CC3FD642696BFC8
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io/headmelted/codebuilds/debian stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0CC3FD642696BFC8
W: Failed to fetch https://packagecloud.io/headmelted/codebuilds/debian/dists/stretch/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0CC3FD642696BFC8
W: Some index files failed to download. They have been ignored, or old ones used instead.
There is a simple workaround, issue the following commands instead
sudo -s
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0CC3FD642696BFC8
. <( wget -O - https://code.headmelted.com/installers/apt.sh )
download the gpg key and do
sudo apt-key add headmelted-code-oss-0CC3FD642696BFC8.pub.gpg