Ketika anda menggunakan linux desktop atau server, ketika menambahkan PPA pada ubuntu dan melakukan update pada terminal, sering mengalami error.
Full code error :
yadi@yadi-PFN:~$ sudo apt-get update Hit:1 https://download.sublimetext.com apt/stable/ InRelease Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease Hit:3 http://linux.teamviewer.com/deb stable InRelease Hit:4 http://linux.teamviewer.com/deb preview InRelease Hit:5 http://dl.google.com/linux/chrome/deb stable Release Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:8 http://ppa.launchpad.net/klaus-vormweg/sylpheed/ubuntu xenial InRelease [17.5 kB] Get:9 http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu xenial InRelease [18.1 kB] Hit:10 http://id.archive.ubuntu.com/ubuntu xenial InRelease Ign:9 http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu xenial InRelease Get:11 http://id.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:12 http://ppa.launchpad.net/klaus-vormweg/sylpheed/ubuntu xenial/main amd64 Packages [1,124 B] Get:13 http://ppa.launchpad.net/klaus-vormweg/sylpheed/ubuntu xenial/main i386 Packages [1,124 B] Get:14 http://id.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Get:15 http://ppa.launchpad.net/klaus-vormweg/sylpheed/ubuntu xenial/main Translation-en [1,048 B] Fetched 345 kB in 13s (26.2 kB/s) Reading package lists... Done W: GPG error: http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8A993C2521C5F0BA W: The repository 'http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu xenial InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. yadi@yadi-PFN:~$
hal tersebut disebabkan karena key PPA tidak ada pada repo local di komputer anda, selanjutnya untuk mengatasi masalah tersebut, pertama perhatikan code errornya. pada bagian berikut :
W: GPG error: http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu xenial InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 8A993C2521C5F0BA
Dari error tersebut kita lihat dan ambil kode 8A993C2521C5F0BA, kemudian jalankan command :
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys KEYANDA
ganti KEYANDA dengan key diatas, sehingga full command menjadi
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8A993C2521C5F0BA
Hasil Command :
yadi@yadi-PFN:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8A993C2521C5F0BA Executing: /tmp/tmp.00xH8PXppH/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 8A993C2521C5F0BA gpg: requesting key 21C5F0BA from hkp server keyserver.ubuntu.com gpg: key 21C5F0BA: public key "Launchpad PPA for Remmina PPA Team" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) yadi@yadi-PFN:~$
Kemudian lakukan : sudo apt-get update
yadi@yadi-PFN:~$ sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:2 https://download.sublimetext.com apt/stable/ InRelease Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease Hit:4 http://linux.teamviewer.com/deb stable InRelease Hit:5 http://linux.teamviewer.com/deb preview InRelease Hit:6 http://dl.google.com/linux/chrome/deb stable Release Hit:8 http://id.archive.ubuntu.com/ubuntu xenial InRelease Get:9 http://id.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Hit:10 http://ppa.launchpad.net/klaus-vormweg/sylpheed/ubuntu xenial InRelease Get:11 http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu xenial InRelease [18.1 kB] Get:12 http://id.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Fetched 324 kB in 8s (36.7 kB/s) Reading package lists... Done yadi@yadi-PFN:~$
selesai