Home > LiNuX (based on debian), Networking, Security, Trouble-Shooting > GPG error saat apt-get update

GPG error saat apt-get update

Pernakah anda mendapatkan warning seperti ini :
root@cygnus:~# apt-get update

Get:1 http://mirror.ee.its.ac.id lenny Release.gpg [386B]
Ign http://mirror.ee.its.ac.id lenny/main Translation-en_US
Ign http://mirror.ee.its.ac.id lenny/contrib Translation-en_US
Ign http://mirror.ee.its.ac.id lenny/non-free Translation-en_US
.
.
.
Fetched 190kB in 0s (575kB/s)
Reading package lists… Done
W: GPG error: http://mirror.ee.its.ac.id lenny Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A70DAF536070D3A1 NO_PUBKEY 4D270D06F42584E6
W: GPG error: http://mirror.ee.its.ac.id lenny-proposed-updates Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A70DAF536070D3A1
W: GPG error: http://mirror.ee.its.ac.id lenny/updates Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A70DAF536070D3A1
W: GPG error: http://mirror.ee.its.ac.id lenny Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 394D199524C52AC3
W: You may want to run apt-get update to correct these problems

PS : Perhatikan bagian yang berwarnawarni.

Setelah googling sebentar, ternyata solusinya bgini :

  1. Download-kan gpg key dari gpg-server yang ada
  2. root@cygnus:~# gpg --keyserver subkeys.pgp.net --recv A70DAF536070D3A1

    gpg: requesting key 6070D3A1 from hkp server subkeys.pgp.net
    gpg: /home/lqman/.gnupg/trustdb.gpg: trustdb created
    gpg: key 6070D3A1: public key “Debian Archive Automatic Signing Key (4.0/etch) <ftpmaster@debian.org>” imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg:               imported: 1

    root@cygnus:~# gpg --keyserver subkeys.pgp.net --recv 4D270D06F42584E6

    gpg: requesting key F42584E6 from hkp server subkeys.pgp.net
    gpg: key F42584E6: public key “Lenny Stable Release Key <debian-release@lists.debian.org>” imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg:               imported: 1

    root@cygnus:~# gpg --keyserver subkeys.pgp.net --recv 394D199524C52AC3

    gpg: requesting key 24C52AC3 from hkp server subkeys.pgp.net
    gpg: key 24C52AC3: public key “Debian Unofficial Archive Automatic Signing Key (2007) <ftpmaster@debian-unofficial.org>” imported
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg:               imported: 1

  3. tambahkan gpg-key yg telah di download kedalam list apt-key
  4. root@cygnus:~# cat /home/lqman/.gnupg/pubring.gpg | apt-key add -

    OK

  5. Pastikan gpg anda sudah berhasil dimuat sebagai apt-key
  6. root@cygnus:~# apt-key list

    /etc/apt/trusted.gpg
    ——————–
    pub 1024D/6070D3A1 2006-11-20 [expires: 2009-07-01]
    uid Debian Archive Automatic Signing Key (4.0/etch)

    pub 1024D/F42584E6 2008-04-06 [expires: 2012-05-15]
    uid Lenny Stable Release Key

    pub 1024D/24C52AC3 2007-01-24 [expired: 2008-02-01]
    uid Debian Unofficial Archive Automatic Signing Key (2007)

  7. Pastikan sudah tidak ada warning lagi
  8. root@cygnus:~# apt-get update

    Get:1 http://mirror.ee.its.ac.id lenny Release.gpg [386B]
    Ign http://mirror.ee.its.ac.id lenny/main Translation-en_US
    Ign http://mirror.ee.its.ac.id lenny/contrib Translation-en_US
    Ign http://mirror.ee.its.ac.id lenny/non-free Translation-en_US
    .
    .
    .
    Fetched 190kB in 0s (575kB/s)
    Reading package lists… Done

Happy hacking…..
FiX your own warning bro…

thx to :
google
kholis : yang menemaniku di lab common
all of U

Referensi :
google.com
forum id-ubuntu walaupun tidak seberapa membantu 😀
lqman@cygnus:~$ man gpg

Advertisements
  1. 23 April 2009 at 5:30 am

    bos boleh saya tambahakan kalau mengalami error saat update key
    misal taimeout atau reicive failed bisa menggunakan perintah ini bos

    wget http://ubuntu.indika.net.id/project/ubuntu-archive-keyring.gpg -O – | apt-key add –
    mohon pencerahaanya kalau salah he he he he maklum newbie

    salam

    Jawab :
    Trima kasih utk masukannya, tapi klo mendownload GPG key-nya secara manual, itu hanya akan berhasil pada mirror (spesifik) yg anda pakai saja, ketika anda berganti ke mirror debian (atau turunannya) lain, akan minta GPG key dr mirror yg bersangkutan lagi.
    Sedangkan cara yg saya berikan diatas bersifat generic, anda bisa meminta (meng-generate) GPG key dr subkeys.pgp.net untuk semua mirror debian yg anda inginkan.

  2. 16 May 2009 at 7:21 pm

    ga tau mas….
    iku bahasa langitan.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: