私はKali NetHunterをインストールして簡単な操作をしようとしましたが、apt update
公開鍵がありません。
root@kali:~# apt-get update
0% [Waiting for headers] [Connected to packages.microsoft.com (13.8Get:2 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease [3232 B]
Hit:1 http://kali.download/kali kali-rolling InRelease
Err:2 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
Reading package lists... Done
W: GPG error: https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
E: The repository 'https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch 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.
頑張った
curl -s https://packages.microsoft.com/repos/microsoft-debian-stretch-prod/dists/stretch/Release.gpg | apt-key add -
そして
wget --no-check-certificate https://packages.microsoft.com/repos/microsoft-debian-stretch-prod/dists/stretch/Release.gpg | apt-key add -
結果gpg: no valid OpenPGP data found
は両側に
ベストアンサー1
Microsoftからキーをロードする
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -