Moriator – I can do it!

Linux dễ dàng hơn bạn nghĩ!

Archive for Tháng Ba, 2009

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! :)

Đăng trong Linux, Linux Tutorial | 5 phản hồi »