首页 > 解决方案 > R 反向移植和无效签名

问题描述

我运行 debian stable (bullseye) 并使用官方的 R backports。看

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) <johannes.ranke@jrwb.de>
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) <johannes.ranke@jrwb.de>
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.

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

标签: rlinuxdebiansignature

解决方案


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

更新:新密钥现在可用。

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

推荐阅读