Hari ini kita akan Memperbaiki kesalahan instalasi Docker NO_PUBKEY di Ubuntu 20.04 LTS dan Debian 11 Bullseye
Jika Anda mendapatkan pesan kesalahan di bawah ini saat menjalankan perintah di bawah ini untuk menginstal buruh pelabuhan dan Kubernetes di server Ubuntu 20.04 LTS.
[email protected]:/home/ubuntu# add-apt-repository \
> "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
> $(lsb_release -cs) \
> stable"
Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu bionic-security InRelease
**Err:2 https://download.docker.com/linux/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8**
Reading package lists... Done
W: GPG error: https://download.docker.com/linux/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
**E: The repository 'https://download.docker.com/linux/ubuntu bionic 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.
[email protected]:/home/ubuntu#
bahkan jika Anda juga telah menjalankan perintah di bawah ini tetapi tidak berhasil;
[email protected]:/# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8
Executing: /tmp/apt-key-gpghome.rDOuMCVLF2/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8
gpg: keyserver receive failed: No keyserver available
Periksa dan Cari Tahu Berapa Lama Waktu yang Dibutuhkan Untuk Mem-boot Sistem Linux Anda
Solusinya Jalankan ini untuk menambahkan kunci yang benar:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
Sumber:https://docs.docker.com/install/linux/docker-ce/ubuntu/
jika Anda menghadapi masalah kesalahan Docker dengan Pengujian Debian 11 (bullseye):
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Tapi bisa diselesaikan dengan:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /us
Cara menginstal Thunderbird 91 terbaru di Ubuntu dan turunannya
Cara Menjalankan Program Java di Ubuntu