headmelted / codebuilds

Community builds of Visual Studio Code for Chromebooks and Raspberry Pi
https://code.headmelted.com
MIT License
1.03k stars 56 forks source link

Public key is not available: NO_PUBKEY 0CC3FD642696BFC8 #122

Open nick-adair opened 4 years ago

nick-adair commented 4 years ago

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 )
jjasoncool commented 3 years ago

圖片 download the gpg key and do sudo apt-key add headmelted-code-oss-0CC3FD642696BFC8.pub.gpg