这就是我在运行apt-get更新时得到的结果:
/root$ sudo apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [1,507 B]
Get:2 http://cdn.debian.net jessie InRelease [1,507 B]
Get:3 http://cdn.debian.net jessie-updates InRelease [1,507 B]
Err http://security.debian.org jessie/updates InReleaset/lists/partial/security.debian.org_dists_jessie_updates_InRelease into data and signature failed
Err http://cdn.debian.net jessie InReleasep /var/lib/apt/lists/partial/cdn.debian.net_debian_dists_jessie_InRelease into data and signature failed
Err http://cdn.debian.net jessie-updates InReleaseib/apt/lists/partial/cdn.debian.net_debian_dists_jessie-updates_InRelease into data and signature failed
Fetched 4,521 B in 1s (4,271 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org jessie/updates InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://cdn.debian.net jessie InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://cdn.debian.net jessie-updates InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
W: Failed to fetch http://cdn.debian.net/debian/dists/jessie/InRelease
W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease
W: Failed to fetch http://cdn.debian.net/debian/dists/jessie-updates/InRelease
W: Some index files failed to download. They have been ignored, or old ones used instead.
我读到了这篇文章,但我还是有点不明白GPG键是如何与repos一起工作的。
每个存储库都有一个与其相关的密钥,在允许回购更新之前,我需要在机器上信任它,对吗?因此,如果此错误是由具有过期键引起的,如何导入新键?
编辑:我也很好奇为什么它会说"Clearsigned文件无效“。我认为Clearsign只是用于包装文本文档,而不是焦油球--除非我读错了这。
发布于 2015-11-04 18:08:57
我不确定是否应该删除这个问题,因为这是一个非常常见的代理问题。
我确信这不是它,而是做一个wget -O- http://cdn.debian.net/debian/dists/jessie/InRelease建议返回一个来自我们的代理的回应。我不认为我是指我们的代理人,但我是!
https://unix.stackexchange.com/questions/239307
复制相似问题