我刚买了一台新机器,并重新安装了Ubuntu21.10,因为我读到更新的内核在图形驱动程序中运行得更好。我计划更新到22.04的LTS时,它将可用。然而,我没有意识到,我可能会遇到与R。
这里有关于在Ubuntu上安装R的富足 of 问题,但是似乎没有一个能解决Ubuntu21.10版本的问题。
从2021年5月19日起,支持的版本包括
因此,如果我理解正确,我有三个选择:
现在,问题是,我是否正确地理解了,或者我可以使用,例如21.04存储库 (hirsute-cran40/)?
发布于 2021-12-19 19:11:17
显然,使用旧版本的存储库是可以的。
安德烈·威尔德伯格( Andre )鼓励我(谢谢!)并将21.04存储库(hirsute-cran40/)添加到我的/etc/apt/sources.list中
deb https://cloud.r-project.org/bin/linux/ubuntu hirsute-cran40/然后,您可以跟踪CRAN指令的其余部分。
添加相关的GPG密钥(在"Secure APT“下,在文档的中途):
$ wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc最后,安装R:
$ sudo apt-get update
$ sudo apt-get install r-base一切都应该很好。
发布于 2021-12-20 13:41:33
您需要一个更新的签名密钥用于回购:
root:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.MsSJzqgwfx/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
gpg: key 51716619E084DAB9: "Michael Rutter <marutter@gmail.com>" 1 new signature
gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory
gpg: can't connect to the agent: No such file or directory
gpg: Total number processed: 1
gpg: new signatures: 1
root:~# apt update
Get:1 https://cloud.r-project.org/bin/linux/ubuntu hirsute-cran40/ InRelease [3628 B]
Get:2 http://security.ubuntu.com/ubuntu impish-security InRelease [110 kB]
Hit:3 http://archive.ubuntu.com/ubuntu impish InRelease
Get:4 http://archive.ubuntu.com/ubuntu impish-updates InRelease [110 kB]
Get:5 http://archive.ubuntu.com/ubuntu impish-backports InRelease [101 kB]
Fetched 325 kB in 1s (422 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
root:# 一个你有,黑工作得很好。也就是说,hirsute二进制文件也应该工作(甚至是焦点二进制文件,就像用于LTS发行版的5000+ r-cran-*二进制文件'cran2deb4ubuntu‘回购一样)。
https://stackoverflow.com/questions/70392745
复制相似问题