debian系linux更新时,提示“由于没有公钥,无法验证下列签名”

问题

在新安装的Ubuntu上,我在使用sudo apt-get update更新时,出现如下错误:

W: GPG error: http://mirrors.163.com/debian wheezy-proposed-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553  NO_PUBKEY 7638D0442B90D010
W: The repository 'http://mirrors.163.com/debian wheezy-proposed-updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.163.com/debian wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553  NO_PUBKEY 7638D0442B90D010  NO_PUBKEY 6FB2A1C265FFB764
W: The repository 'http://mirrors.163.com/debian wheezy Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://mirrors.163.com/debian/dists/wheezy/main/i18n/Translation-en  BZ2_bzread: /var/lib/apt/lists/partial/mirrors.163.com_debian_dists_wheezy_main_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.

解决方法

1. 下载导入公钥

# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys  8B48AD6246925553

# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys  7638D0442B90D010

# 此处的8B48AD6246925553、7638D0442B90D010是错误提示中的:NO_PUBKEY 8B48AD6246925553  NO_PUBKEY 7638D0442B90D010 

2. 校验问题

此时继续使用sudo apt-get update更新,发现没有公钥错误提示了,但还存在校验问题。

E: Failed to fetch http://mirrors.163.com/debian/dists/wheezy/main/i18n/Translation-en  BZ2_bzread: /var/lib/apt/lists/partial/mirrors.163.com_debian_dists_wheezy_main_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
E: Some index files failed to download. They have been ignored, or old ones used instead.

此时需要打开软件源的界面,将其他软件选项中的Canpnical合作伙伴/独立等四个选项取消勾选,

执行更新

# sudo apt-get update
  • 2
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值