我找到了一些安装最新版本R的说明,但它们都非常复杂。尽管如此,我还是试过了,但都没有用。真的没有老生常谈的办法来完成这件事吗?
我试过了
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran36/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt update
有两个不同的URL,并且总是得到类似的东西
Get:21 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages [51.4 kB]
Reading package lists... Done
E: The repository 'http://www.stats.bris.ac.uk/R/bin/linux/ubuntu bionic/ Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.canonical.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
E: The repository 'http://archive.canonical.com precise Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
(我也尝试过-允许-尽管不得不这样做让人感到不舒服,但这并没有改变任何事情。)
我也试过sudo echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" >> /etc/apt/sources.list
但这也没什么用。(这就要求我把那份文件整理一下。这太荒谬了)
顺便说一句,r项目网站本身说的东西,如,以获得最新的R3.4包,添加一个条目,如
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
最后,不足为奇的是,试图从源代码安装也会导致消息崩溃。
Configure: error: Maybe check LDFLAGS for paths to Fortran libraries?
我需要R3.6,因为我需要运行的一些软件需要它。不过,谷歌几乎不存在R3.6。
发布于 2020-01-03 15:06:22
您的错误在您要添加的存储库中。
https://cloud.r-project.org/bin/linux/ubuntu仿生机36/
使用仿生起重机35储存库。R3.6将安装在ubuntu 18上。
https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04-quickstart
在19岁春季的一台机器上,我也使用了36个存储库,当时35台还没有r3.6。最后,我安装了19.10软件包,这是正常的。我刚刚删除了它们,并使用相应的存储库在我的计算机上正确地安装了r3.6。
https://askubuntu.com/questions/1152417
复制相似问题