Mengatasi GPG error: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY Parrot OS Linux

Mengatasi GPG error: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY Parrot OS Linux

Halo Sobat Teknisi, apa kabar semoga semua dalam keadaan yang baik-baik saja. Pada kesempatan kali ini akan membahas mengenai cara menyelesaikan permasalahan yang timbul ketika melakukan update repositories yang gagal karena key gpg kadaluarsa.


Baca juga: Mengatasi E: Could not get lock /var/lib/dpkg/lock-frontend Kubuntu Linux


Gambaran Masalah

Saat kita melakukan apt update maka akan muncul error seperti di bawah ini: 


W: GPG error: https://deb.parrot.sh/parrot rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B56FFA946EB1660A
E: The repository 'https://deb.parrot.sh/parrot rolling 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.


Didalam keterangan tersebut tertulis jika The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B56FFA946EB1660A kurang lebih artinya key tersebut tidak tersedia atau sudah kadaluarsa.

 

Baca juga: Cara Melihat Daftar dan Remove apt-key keyring GPG Parrot OS Linux


Solusi

Jika Sobat mengalami hal tersebut, kemungkinan dengan melakukan cara berikut bisa mengatasinya.

 

Catat berapa key yang terdapat di komputer Sobat, lalu buka terminal dan ketikkan perintah berikut.


sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B56FFA946EB1660A

 

Note: Ganti B56FFA946EB1660A dengan key milik Sobat.


Apabila berhasil nanti akan muncul keterangan seperti ini.


Executing: /tmp/apt-key-gpghome.XtkUe2K40v/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys B56FFA946EB1660A
gpg: key B56FFA946EB1660A: 1 signature not checked due to a missing key
gpg: key B56FFA946EB1660A: public key "Parrot project <team@parrotsec.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1


Selesai.


Begitu temen-temen artikel cara "Mengatasi GPG error: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY Parrot OS Linux" semoga dapat membantu permaslahan yang sedang Sobat hadapi saat ini. Jika artikel ini menarik silahkan klik tombol share ya teman-teman terimakasih dan wassalam.