我曾尝试在我的 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”之类的。
然后,阅读说明安全 APT在https://cran.r-project.org/bin/linux/ubuntu/.apt
抱怨无法验证来自服务器的包。