R 向后移植和无效签名

问题描述 投票:0回答:4

我运行 debian stable (bullseye) 并使用官方 R 向后移植。 见

https://cloud.r-project.org/bin/linux/debian/

我向 mu 存储库添加了一行

$ cat /etc/apt/sources.list | grep r-project
deb http://cloud.r-project.org/bin/linux/debian bullseye-cran40/

直到今天一切都很好。 现在,当我更新时,当我运行 sudo apt update 时,我收到有关 R 存储库签名的错误,请参阅

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://cloud.r-project.org/bin/linux/debian bullseye-cran40/ InRelease: The following signatures were invalid: EXPKEYSIG FCAE2A0E115C3D8A Johannes Ranke (Wissenschaftlicher Berater) <[email protected]>
W: Failed to fetch http://cloud.r-project.org/bin/linux/debian/bullseye-cran40/InRelease  The following signatures were invalid: EXPKEYSIG FCAE2A0E115C3D8A Johannes Ranke (Wissenschaftlicher Berater) <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.

签名到目前为止一直有效。 我按照此处的说明重新导入了它

https://cloud.r-project.org/bin/linux/debian/#administration-and-maintenance

我粘贴在下面

You can fetch and import the current key using

apt-key adv --keyserver keyserver.ubuntu.com --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'

Note that you need to add sudo if you are not running this as root.

If this fails, it may be due to a firewall blocking port 11371. In this case, you can search for 0xE19F5F87128899B192B1A2C2AD5F960A256A04AF at https://keyserver.ubuntu.com, and copy the key block shown when klicking on the link in the line starting with pub into a plain text file, named, for instance, jranke.asc which you add to apt with (sudo) apt-key add jranke.asc.

但它不起作用。 我导入签名,但是当我更新时,我总是被告知它无效。 其他人也有同样的经历吗?有任何想法吗? 谢谢!

r linux debian signature
4个回答
12
投票

同样的问题。 原因:我联系了Ranke先生,他写信说他没有及时更新密钥。 我预计很快就会修复。

更新:新密钥现已可用。

apt-key adv --keyserver keyserver.ubuntu.com --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7'

3
投票

直到“很快”变成“现在”,您可以使用此解决方法:

更新您的:/etc/apt/sources.list.d/backports.list:

deb [trusted=yes] http://cloud.r-project.org/bin/linux/debian bullseye-cran40/

在运行 apt-get update 之前执行此操作。请记住在更新密钥后撤销此更改,因为这不是安全的解决方案。


1
投票

跑步后

apt-key adv --keyserver keyserver.ubuntu.com --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7'

问题对我来说已经消失了。


0
投票

我明白了,所以也许我无法再在 debian 11 上安装 r-studio 4.3.x 了?

E:无法获取https://cloud.r-project.org/bin/linux/debian/bullseye-cran42/Packages 404 未找到 [IP: 143.204.215.82 443] E: 部分索引文件下载失败。它们已被忽略,或使用旧的代替。

© www.soinside.com 2019 - 2024. All rights reserved.