winhq的key无效

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

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

后来在 http://ubuntuhandbook.org/index.php/2018/09/how-to-install-wine-stable-3-0-3-in-ubuntu-18-04/ 找到答案,需要安装新的key:

Did you successfully install the repository key?

Download the key via command:

wget -nc https://dl.winehq.org/wine-builds/Release.key

Then install the downloaded key file:

sudo apt-key add Release.key

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

这样我可以继续安装我的nodejs14.

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

sudo apt-get install -y nodejs
https://computingforgeeks.com/install-node-js-14-on-ubuntu-debian-linux/