Debian 中使用apt-get update 出现NO_PUBKEY 解决方法
2008-08-27 00:25
701 查看
在使用apt-get update 更新时提示
W: GPG error: http://ftp.debian-unofficial.org etch Release: The following
signatures couldn't be verified because the public key is not available:
NO_PUBKEY D5642BC86823D007
W: You may want to run apt-get update to correct these problems
出现上叙问题是由于没有公钥,http://ftp.debian-unofficial.org 的签名无法进行验证!只要重新导入公钥即可!
gpg --keyserver subkeys.pgp.net --recv-keys D5642BC86823D007
gpg --export D5642BC86823D007 | apt-key add -
编写一个脚本处理此问题
#!/bin/sh
if [ !# -eq 0 ]
then
echo usage: $0 keys
exit 1
fi
gpg --keyserver subkeys.pgp.net --recv-keys $1
gpg --export $1| apt-key add -
W: GPG error: http://ftp.debian-unofficial.org etch Release: The following
signatures couldn't be verified because the public key is not available:
NO_PUBKEY D5642BC86823D007
W: You may want to run apt-get update to correct these problems
出现上叙问题是由于没有公钥,http://ftp.debian-unofficial.org 的签名无法进行验证!只要重新导入公钥即可!
gpg --keyserver subkeys.pgp.net --recv-keys D5642BC86823D007
gpg --export D5642BC86823D007 | apt-key add -
编写一个脚本处理此问题
#!/bin/sh
if [ !# -eq 0 ]
then
echo usage: $0 keys
exit 1
fi
gpg --keyserver subkeys.pgp.net --recv-keys $1
gpg --export $1| apt-key add -
相关文章推荐
- 关于Debian中apt-get时出现NO_PUBKEY的解决方法
- apt-get update出现NO_PUBKEY错误的解决方法
- 解决apt-get update出现NO_PUBKEY的问题
- ubuntu 使用sudo apt-get update 出现 被配置多次导致无法升级错误解决方法
- 关于ubuntu在使用apt-get update时Hash Sum mismatch的解决方法
- apt-get出现E:Encountered a section with no Package: header, ……及其解决方法
- Ubuntu安装telent服务器时出现:apt-get:Package has no installation的原因及解决方法
- 使用apt-get出现“Could not get lock...”的解决方法
- apt-get出现E:Encountered a section with no Package: header……的解决方法
- Linux之Debian执行apt-get update提示”没有可用的公钥”解决方法
- Ubuntu下apt-get出现“no public key available…”解决方法
- Apt-get : NO_PUBKEY / GPG error解决方法
- 重装Ubuntu 14.04后使用apt-get安装build-essential(即sudo apt-get install build-essential)时出现包依赖项问题的解决方法
- apt-get update出现NO_PUBKEY错误怎么办?
- 如何解决apt-get update出现The following signatures were invalid: NODATA 1 NODATA 2问题
- apt-get update 出现GPG错误解决方法
- ubuntu取消代理后,apt-get update显示还是使用代理解决方法
- 在Docker中解决ubuntu中apt-get update使用的方法
- apt-get update 更新 ubuntu时出现Hash sum mismatch的原因及解决方法
- Ubuntu在执行sudo apt-get install ***出现E:Encountered a section with no Package header错误解决方法