前提・実現したいこと
いつものようにsudo apt update をしようとしてもエラーが出てできなくなってしまいました.
発生している問題・エラーメッセージ
Err:1 https://cli-assets.heroku.com/apt ./ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
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 6DB5542C356545CF
W: Failed to fetch https://cli-assets.heroku.com/apt/./InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
W: Some index files failed to download. They have been ignored, or old ones used instead.
試したこと
以下のことを試しましたが, 続いてこのようなエラーが出ました
gpg: keyserver receive failed: Server indicated a failure
apt-get update時に「公開鍵を利用できないため、以下の署名は検証できませんでした」と出た場合
補足情報(FW/ツールのバージョンなど)
Ubuntu 20.04
wsl2
追加事項
1
参考ブログ
この記事の1を試した段階で以下のメッセージが出ました.
**gpg: keyserver receive failed: No data **
2
ask Ubuntu
上記の記事を参考に, sudo apt-key updateと 打ち込んだら,
:~$ sudo apt-key update
Warning: 'apt-key update' is deprecated and should not be used anymore!
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key 3B4FE6ACC0B21F32: "Ubuntu Archive Automatic Signing Key (2012) ftpmaster@ubuntu.com" not changed
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) cdimage@ubuntu.com" not changed
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: key 871920D1991BC93C: "Ubuntu Archive Automatic Signing Key (2018) ftpmaster@ubuntu.com" not changed
gpg: Total number processed: 3
gpg: unchanged: 3
この後に sudo apt updateを打ち込んだら
:~$ sudo apt update
Get:1 https://cli-assets.heroku.com/apt ./ InRelease [2879 B]
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease
Err:1 https://cli-assets.heroku.com/apt ./ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:7 https://dl.yarnpkg.com/debian stable InRelease Ign:4 https://dl.bintray.com/etcher/debian stable InRelease Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:8 https://dl.bintray.com/etcher/debian stable Release [3674 B] Get:10 https://dl.bintray.com/etcher/debian stable Release.gpg [821 B] Ign:10 https://dl.bintray.com/etcher/debian stable Release.gpg Reading package lists... Done
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 6DB5542C356545CF
W: GPG error: https://dl.bintray.com/etcher/debian stable Release:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 379CE192D401AB61
E: The repository 'https://deb.etcher.io stable Release' 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.
回答2件
あなたの回答
tips
プレビュー