设置源时出现公钥问题的解决
Tofloor
poster avatar
yxgi5
deepin
2012-10-17 06:36
Author
Ubuntu没有deepin公钥的解决办法:
下载公钥
http://packages.linuxdeepin.com/deepin/ ... eyring.gpg
导入公钥
gpg --import /home/andy/Downloads/deepin-keyring.gpg
查看
gpg --list-keys
/home/andy/.gnupg/pubring.gpg
-----------------------------
pub   2048R/209088E7 2010-10-06
uid                  Leng Ganghua (Hiweed)
sub   2048R/4B46F33F 2010-10-06
导出到apt-key
sudo gpg --export --armor 209088E7 | sudo apt-key add -
就可以用deepin的源了

Deepin没有ubuntu公钥时
更新软件列表:   # sudo apt-get update
这里会显示
正在读取软件包列表... 完成
W: GPG 错误:http://extras.ubuntu.com precise Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY 16126D3A3E5C1192

没有公钥的解决办法:
andy@hp-laptop:~$ gpg --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192
gpg: 已创建目录‘/home/andy/.gnupg’
gpg: 新的配置文件‘/home/andy/.gnupg/gpg.conf’已建立
gpg: 警告:在‘/home/andy/.gnupg/gpg.conf’里的选项于此次运行期间未被使用
gpg: 钥匙环‘/home/andy/.gnupg/secring.gpg’已建立
gpg: 钥匙环‘/home/andy/.gnupg/pubring.gpg’已建立
gpg: 下载密钥‘3E5C1192’,从 hkp 服务器 keyserver.ubuntu.com
gpg: /home/andy/.gnupg/trustdb.gpg:建立了信任度数据库
gpg: 密钥 3E5C1192:公钥“Ubuntu Extras Archive Automatic Signing Key ”已导入
gpg: 没有找到任何绝对信任的密钥
gpg: 合计被处理的数量:1
gpg:               已导入:1
andy@hp-laptop:~$ gpg --armor --export 3E5C1192 | sudo apt-key add -
OK

http://blog.chinaunix.net/uid-7673620-id-2598674.html
http://wiki.ubuntu.org.cn/GPG/PGP#.E5.A ... 4.E7.94.A8
http://www.linuxdeepin.com/forum/6/7962
http://forum.ubuntu.org.cn/viewtopic.php?t=352646
http://wiki.linuxdeepin.com/index.php?t ... 9%E6%B3%95
Reply Favorite View the author
All Replies
ibeetv.com
deepin
2012-10-20 19:25
#1
没见过这情况!感谢LZ分享!
Reply View the author
cxbii
deepin
2012-10-21 03:49
#2
遇到的情况比较少,这个问题百科还是收录的啦
Reply View the author