Linux Software Package: Difference between revisions
From KevinWiki
Jump to navigationJump to search
New page: Category:Linux == Check Package == <pre> $ dpkg -l | grep <package name> </pre> <pre> $ apt-cache policy <package name> </pre> <pre> $ apt-cache search <package name in regular express... |
No edit summary |
||
| Line 10: | Line 10: | ||
$ apt-cache search <package name in regular expression> | $ apt-cache search <package name in regular expression> | ||
</pre> | </pre> | ||
== Troubleshooting == | |||
After run <code>apt-get update</code> if there is a GPG error like | |||
<pre> | |||
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 608BF7B93528AE20 | |||
</pre> | |||
Take the last 8 characters from the keyid | |||
<pre> | |||
e.g.) | |||
from the keyid | |||
608BF7B93528AE20 | |||
take 3528AE20 | |||
</pre> | |||
Run the following commands | |||
gpg --keyserver keyserver.ubuntu.com --recv 3528AE20 | |||
gpg --export --armor 3528AE20 | sudo apt-key add - | |||
OR | |||
Use the full keyid and put the 0x before it then run the following commands | |||
wget -q "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x608BF7B93528AE20" -O- | sudo apt-key add - | |||
If it does not work, remove the port number and try again. | |||
wget -q "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x608BF7B93528AE20" -O- | sudo apt-key add - | |||
To see all the keys, | |||
sudo apt-key list | |||
Revision as of 13:19, 15 September 2010
Check Package
$ dpkg -l | grep <package name>
$ apt-cache policy <package name>
$ apt-cache search <package name in regular expression>
Troubleshooting
After run apt-get update if there is a GPG error like
W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 608BF7B93528AE20
Take the last 8 characters from the keyid
e.g.) from the keyid 608BF7B93528AE20 take 3528AE20
Run the following commands
gpg --keyserver keyserver.ubuntu.com --recv 3528AE20 gpg --export --armor 3528AE20 | sudo apt-key add -
OR Use the full keyid and put the 0x before it then run the following commands
wget -q "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x608BF7B93528AE20" -O- | sudo apt-key add -
If it does not work, remove the port number and try again.
wget -q "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x608BF7B93528AE20" -O- | sudo apt-key add -
To see all the keys,
sudo apt-key list