Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux “如何修复”;apt get update时签名无效;错误?_Linux_Apt Get - Fatal编程技术网

Linux “如何修复”;apt get update时签名无效;错误?

Linux “如何修复”;apt get update时签名无效;错误?,linux,apt-get,Linux,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 we

每当我尝试
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) <root@linuxmint.com>

W: GPG error: http://extra.linuxmint.com rafaela Release: The following signatures were invalid: BADSIG 3EE67F3D0FF405B2 Clement Lefebvre (Linux Mint Package Repository v1) <root@linuxmint.com>
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.
你知道我还能做些什么来解决这个问题吗


p、 这一切都是在尝试安装nodejs和npm时开始的。

这对我在Linux Mint 17上很有效:

sudorm-r/var/lib/apt/list

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

苏多容易变得干净

sudoapt获得更新

sudo apt密钥列表| grep已过期

从该结果中获取要使用的密钥:
pub 4096R/BE1DB1F12011-03-29[到期日期:2014-03-28]

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

sudoapt获得更新


解决方案部分来自。

以修复
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

如果您仍然存在
哈希和不匹配
错误,请遵循social的步骤。

这没有列出NO-PUBKEY,而是抱怨
gpgv
命令失败。谢谢-我已更新了答案,以参考OP的BADSIG错误,并指向其他错误的现有答案。我得到了与rosa相同的eact错误(mint 17.3)我尝试了所有方法,包括删除键控和重新创建键控,没有任何帮助。。。。
deb http://extra.linuxmint.com rafaela main