找回密码
 注册
搜索
热搜: 超星 读书 找书
查看: 2694|回复: 0

[【推荐】] 在使用apt-get update 更新时提示

[复制链接]
发表于 2009-8-6 14:43:44 | 显示全部楼层 |阅读模式
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 -
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|网上读书园地

GMT+8, 2024-6-17 05:43 , Processed in 0.344301 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表