在 Ubuntu 中安装 R...问题

在 Ubuntu 中安装 R...问题

我曾尝试在我的 Ubuntu 16.10 Yakkety 上安装 R。

我将以下 deb 放在我的 /etc/apt/sources.list 文件中。

deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu yakkety main
universe restricted multiverse

但是,运行后sudo apt-get update,我收到以下消息,我不明白:

Fetched 102 kB in 6s (15.7 kB/s)                                                                                                                                            
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/george-edison55/cmake-3.x/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://cran.ma.imperial.ac.uk/bin/linux/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/george-edison55/precise-backports/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.

在 Ubuntu 16.10 中安装 R 时有人遇到过这种情况吗?

答案1

您忘记导入此存储库的 pgp-key。因此报告错误。

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9随后添加密钥运行sudo apt update

这里有一个关于如何添加其存储库的详细说明:http://cran.ma.imperial.ac.uk/bin/linux/ubuntu/README

答案2

您的文件中的行sources.list应该是:

deb https://cran.ma.imperial.ac.uk/bin/linux/ubuntu yakkety/

您不需要“main”之类的。

然后,阅读说明安全 APThttps://cran.r-project.org/bin/linux/ubuntu/.apt抱怨无法验证来自服务器的包。

答案3

你为什么不直接使用安装

sudo apt-get install r-base

或者从以下地址下载 deb这里

并使用 gdebi 安装

相关内容