Sửa lỗi GPG error
Đăng bởi moriator on Tháng Ba 25, 2009
Đôi khi, khi bạn add vào /etc/apt/souces.list vài repository thì có thể gặp lỗi như thế này:
W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 60D11217247D1CFF
W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 4874D3686E80C6B7
Lỗi trên xuất hiện khi tôi update OpenOffice từ 2.4 lên 3.0. Các khắc phục rất đơn giản. Bạn vào Terminal gõ 2 dòng lệnh sau:
$ gpg --keyserver keyserver.ubuntu.com --recv-keys $KEY
$ gpg --export --armor $KEY | sudo apt-key add -
Trong đó, $KEY là giá trị của khóa bị thiếu (ví dụ ở trên, tôi thiếu 2 khóa 60D11217247D1CFF và 4874D3686E80C6B7).
Sau đó chạy lệnh
$ sudo apt-get update
là xong!
Chúc vui!


tuyetkiem đã nói
Sửa rồi
Không ăn thua
moriator đã nói
Em sửa ngon lành mà.
moriator đã nói
Em hiểu tại sao anh làm không được rồi? Do wordperss khi dùng chức năng quote thì nó biến — thành -
Đã sửa!
tuyetkiem đã nói
Hit http://ppa.launchpad.net intrepid/main Packages
Fetched 618B in 4s (150B/s)
Reading package lists… Done
W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 60D11217247D1CFF
W: You may want to run apt-get update to correct these problems
tuyetkiem@gialac:~$ gpg –keyserver subkeys.pgp.net –recv 60D11217247D1CFF
gpg: requesting key 247D1CFF from hkp server subkeys.pgp.net
gpg: key 247D1CFF: public key “Launchpad PPA for OpenOffice.org Scribblers” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
tuyetkiem@gialac:~$ gpg –export –armor 60D11217247D1CFF | sudo apt-key add -
OK
tuyetkiem@gialac:~$
tuyetkiem đã nói
Ổn !