Liuw's Thinkpad

想要赢就先学会输,想要成功就先学会失败

Archive for the ‘apt-get’ tag

Fix `apt-get update’ GPG Error

without comments

This is quite common when you add some non-official sources to ‘source.list’.

gpg --keyserver hkp://wwwkeys.eu.pgp.net --no-default-keyring --primary-keyring /etc/apt/trusted.gpg --recv KEYID

Choose key server as you wish. The critical part is that we specify apt’s keyring, rather than creating our own. If we miss those key ring options, gpg(1) will create a folder .gnupg in home directory, which comes out to be our personal settings, not apt(8)’s.

Written by liuw

February 8th, 2010 at 7:37 pm

Posted in UNIX-like

Tagged with , , , ,

Fix `apt-get update' GPG Error

without comments

This is quite common when you add some non-official sources to ‘source.list’.

gpg --keyserver hkp://wwwkeys.eu.pgp.net --no-default-keyring --primary-keyring /etc/apt/trusted.gpg --recv KEYID

Choose key server as you wish. The critical part is that we specify apt’s keyring, rather than creating our own. If we miss those key ring options, gpg(1) will create a folder .gnupg in home directory, which comes out to be our personal settings, not apt(8)’s.

Written by liuw

February 8th, 2010 at 7:37 pm

Posted in UNIX-like

Tagged with , , , ,