微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

apt-get更新时签名无效

每当我试图sudo apt-get update即时获取错误

W: An error occurred during the signature verification. The repository is not updated and the prevIoUs index files will be used. GPG error: http://packages.linuxmint.com rafaela Release: The following signatures were invalid: BADSIG 3EE67F3D0FF405B2 Clement Lefebvre (Linux Mint Package Repository v1) <[email protected]> W: GPG error: http://extra.linuxmint.com rafaela Release: The following signatures were invalid: BADSIG 3EE67F3D0FF405B2 Clement Lefebvre (Linux Mint Package Repository v1) <[email protected]> W: Failed to fetch http://packages.linuxmint.com/dists/rafaela/Release W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'restricted/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file) W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages Hash Sum mismatch W: Some index files Failed to download. They have been ignored,or old ones used instead.

所以我做了一些阅读,并尝试在sofwareware-sources区域更换镜像,并按照此答案运行此命令:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3EE67F3D0FF405B2

但得到这个结果,没有帮助我:

apt-get代理。 用户名密码中的特殊字符

使用apt-get时进行交叉编译

在pip安装uWsgi之后,没有/ etc / uwsgi /目录 – 我怎样才能使用apps-enabled?

从Debian Snapshot Archives repo安装软件包?

我怎样才能让我的程序通过Linux库(例如,使用apt-get)安装?

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.joWxQNcMmd --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver keyserver.ubuntu.com 3EE67F3D0FF405B2 gpg: requesting key 0FF405B2 from hkp server keyserver.ubuntu.com gpg: key 0FF405B2: "Clement Lefebvre (Linux Mint Package Repository v1) <[email protected]>" not changed gpg: Total number processed: 1 gpg: unchanged: 1

任何想法还有什么我可以尝试以解决它?

ps在尝试安装nodejs和npm时都开始了

Windows上的boot2docker缺lessapt-get /软件包pipe理器

apt-get dist-upgrade,而不覆盖我自己编译的vim

Ubuntu / DigitalOcean – 无法获取软件包以在全新安装上安装git

为另一个分区/目录运行apt-get?

在linux mint上安装build-dep

这对我在Linux Mint 17 Qiana上工作:

sudo rm -r / var / lib / apt / lists

sudo mkdir -p / var / lib / apt / lists / partial

sudo apt-get clean

sudo apt-get update

sudo apt-key list | grep过期了

从这个结果中获得使用的关键:

pub 4096R / BE1DB1F1 2011-03-29 [过期时间:2014-03-28]

sudo apt-key adv –recv-keys –keyserver keys.gnupg.net BE1DB1F1

sudo apt-get update

解决方案部分从这个职位 。

修复BADSIG错误

它应该是packages.linuxmint.com而不是extra.linuxmint.com 。

查找哪个软件包列表文件包含有问题的主机:

grep -R extra.linuxmint.com /etc/apt/sources.list.d

改变任何匹配的行。

仅供参考,我的一行是在/etc/apt/sources.list.d/official-package-repositories.list ,现在显示为:

deb http://extra.linuxmint.com rafaela main

如果你仍然有Hash Sum mismatch错误,那么按照社会的步骤。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐