執(zhí)行sudo apt-get update 報了
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/apt ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5DC22404A6F9F1CA
把報錯的公鑰值放到這條命令中
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 5DC22404A6F9F1CA
gpg: key 5DC22404A6F9F1CA: public key "Heroku Inc. support@heroku.com" imported
gpg: Total number processed: 1
gpg: imported: 1
表示執(zhí)行成功
再執(zhí)行
sudo apt-get udpate成功