我尝试过使用 sudo apt-get update 和 sudo apt-get upgrade。我得到这个错误与 kubernetes 错误:我已经尝试使用以下以下命令:
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
但它没有奏效!我怎样才能解决这个问题?是不是我必须以某种方式拿到钥匙?
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://ppa.launchpad.net/git-core/ppa/ubuntu disco InRelease
Hit:3 https://download.docker.com/linux/ubuntu focal InRelease
Hit:4 http://apt.postgresql.org/pub/repos/apt groovy-pgdg InRelease
Hit:5 http://archive.ubuntu.com/ubuntu groovy InRelease
Hit:6 http://ppa.launchpad.net/kritalime/ppa/ubuntu disco InRelease
Get:7 http://archive.ubuntu.com/ubuntu groovy-updates InRelease [115 kB]
Ign:8 http://repo.vivaldi.com/stable/deb stable InRelease
Hit:9 http://repo.vivaldi.com/stable/deb stable Release
Get:11 http://archive.ubuntu.com/ubuntu groovy-backports InRelease [101 kB]
Hit:12 https://cli-assets.heroku.com/branches/stable/apt ./ InRelease
Get:13 http://archive.ubuntu.com/ubuntu groovy-security InRelease [110 kB]
Hit:14 https://download.sublimetext.com apt/stable/ InRelease
Get:10 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [9 383 B]
Hit:15 https://packagecloud.io/AtomEditor/atom/any any InRelease
Get:17 http://archive.ubuntu.com/ubuntu groovy-updates/main amd64 DEP-11 Metadata [40,7 kB]
Get:18 http://archive.ubuntu.com/ubuntu groovy-updates/universe amd64 DEP-11 Metadata [104 kB]
Get:19 http://archive.ubuntu.com/ubuntu groovy-updates/multiverse amd64 DEP-11 Metadata [2 468 B]
Get:20 http://archive.ubuntu.com/ubuntu groovy-backports/universe amd64 DEP-11 Metadata [600 B]
Get:21 http://archive.ubuntu.com/ubuntu groovy-security/main amd64 DEP-11 Metadata [4 676 B]
Get:22 http://archive.ubuntu.com/ubuntu groovy-security/universe amd64 DEP-11 Metadata [4 564 B]
Err:10 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
The following signatures were invalid: EXPKEYSIG 6A030B21BA07F4FB Google Cloud Packages Automatic Signing Key <[email protected]> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B57C5C2836F4BEB
Reading package lists... Done
W: GPG error: https://packages.cloud.google.com/apt kubernetes-xenial InRelease: The following signatures were invalid: EXPKEYSIG 6A030B21BA07F4FB Google Cloud Packages Automatic Signing Key <[email protected]> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B57C5C2836F4BEB
E: The repository 'http://apt.kubernetes.io kubernetes-xenial InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details
我找到了一个对我有帮助的答案:
写吧:
须藤
以 root 身份登录,然后:
卷曲https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt键添加 -