今天apt-get update的时候报错。说winHQ的key无效。

  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A

后来在 找到答案,需要安装新的key:

Did you successfully install the repository key?

Download the key via command:

wget -nc

Then install the downloaded key file:

sudo apt-key add Release.key

然后apt-get update后问题解除。


curl -sL | sudo -E bash -

sudo apt-get install -y nodejs