from: http://www.matinfo.ch/blog/archive/2006/03/14/debian-apt-key.html
If you have some GPG warning when you use apt-get, like below:
skx@mybox ~ # apt-get update
Get:4 http://security.debian.org testing/updates Release.gpg [189B]
Hit http://security.debian.org testing/updates Release
Err http://security.debian.org testing/updates Release
--- skipped ---
Fetched 97.6kB in 10s (9115B/s)
Reading package lists... Done 7
W: GPG error: http://security.debian.org testing/updates Release:
The following signatures couldn't be verified because the public
key is not available: NO_PUBKEY 010908312D230C5F
W: You may want to run apt-get update to correct these problems
You need to install a new debian GPG key use this little script, like this:
mybox ~ # cd /usr/local/bin
and ...
mybox ~ # chmod a+x /usr/local/bin/apt-install-key
mybox ~ # cat /usr/local/bin/apt-install-key
#!/bin/sh
echo Getting Key $1
gpg --recv-keys --keyserver hkp://pgp.mit.edu $1
gpg --armor --export $1 | apt-key add -
echo =============[FINGERPRINT]==============
gpg -v --fingerprint
echo ========================================
echo done
run like:
mybox ~ # apt-install-key 010908312D230C5F
If you don't have the security software you can install it as follows:
mybox ~ # apt-get install gnupg
by default the GPG keys for apt-get there located in:/etc/apt/trusted.gpg
2020年3月27日 21:01
Get the complete information of windows 10 operating system. This is an awesome post for the user of windows 10 operating system.