本文介绍了如何在Debian Jessie(8.8)上安装更新的R-packages?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 在Debian Jessie(8.8)上,最新的R包不足以使用一些Jupyter-notebook函数(例如 rpy2 ),所以我正在尝试获得R> = 3.3 版本。当前版本为: R版本3.1.1(2014-07-10) 这里是stackoverflow用户提供的有用链接: https://cran.r-project.org/bin/linux/debian/ ,但是即使有了它,我也不知道如何获得更新R版本。 您能帮我吗? 编辑 不确定是否有帮助,但这就是我所拥有的 /etc/apt/sources.list #deb cdrom:[ Debian GNU / Linux 8 _Jessie_-官方快照amd64 LIVE / INSTALL二进制文件20160315-14:54] / jessie contrib main非免费 ## Debian GNU / Linux官方存储库 deb http ://ftp.debian.org/debian/ jessie main contrib non-free deb http://security.debian.org/ jessie / updates main contrib non-free deb- src http://security.debian.org/ jessie / updates主要贡献非免费 〜解决方案您可以从以下版本升级 r 包: 1)Backports存储库:( 3.3.3 版本) 将以下行添加到您的 sources.list : deb http://deb.debian.org / debian jessie-backports main contrib non-free 保存然后安装 r : apt-get update apt-get -t jessie-backports install r-基本r-base-dev 2)CRAN存储库( 3.4.3 版本) 请遵循官方文档: 对于R 3.4.3到jessie的后向移植,请添加以下内容 deb http://< favourite-cran-mirror> / bin / linux / debian jessie-cran34 / 复制到计算机上的文件 /etc/apt/sources.list 。您需要用< favourite-cran-mirror> /mirrors.html rel = nofollow noreferrer>镜像列表。 > 保护APT 从CRAN存储库安装软件包之前,您需要导入 Johannes Ranke< [email protected]> (请参阅安全适配器) e,g:。 echo deb https://mirrors.sorengard.com/cran / bin / ldebian jessie-cran34 />> /etc/apt/sources.list apt-key adv --keyserver keys.gnupg.net --recv-key'E19F5F87128899B192B1A2C2AD5F960A256A04AF' apt-get update apt-get install r-基本r-base-dev On Debian Jessie (8.8), the most up-to-date R package isn't enough for using some Jupyter-notebook functions (like rpy2), so I am trying to get R>=3.3 version. The current version is:R version 3.1.1 (2014-07-10)Here is an useful link provided by a stackoverflow user: https://cran.r-project.org/bin/linux/debian/, but even with it, I don't know how to get the newer R-version.Would you help me please?EDITNot sure if helps, but here is what I have in /etc/apt/sources.list# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160315-14:54]/ jessie contrib main non-free## Repositorio oficial de Debian GNU/Linuxdeb http://ftp.debian.org/debian/ jessie main contrib non-freedeb http://security.debian.org/ jessie/updates main contrib non-freedeb-src http://security.debian.org/ jessie/updates main contrib non-free~ 解决方案 You can upgrade r package from :1) Backports repository : (the 3.3.3 version)Add the following line to your sources.list:deb http://deb.debian.org/debian jessie-backports main contrib non-freeSave then install r:apt-get updateapt-get -t jessie-backports install r-base r-base-dev2) CRAN repository (the 3.4.3 version)Follow the steps described on the official documentation : For a backport of R 3.4.3 to jessie, please add something likedeb http://<favourite-cran-mirror>/bin/linux/debian jessie-cran34/ to the file /etc/apt/sources.list on your computer. You need to substitute <favourite-cran-mirror> by one of the mirror URLs listed in the mirror list.Secure APTBefore installing the package from CRAN repository , You need to import the singing key released by Johannes Ranke <[email protected]> (see the secure-apt )e,g:.echo deb https://mirrors.sorengard.com/cran/bin/ldebian jessie-cran34/ >> /etc/apt/sources.listapt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'apt-get updateapt-get install r-base r-base-dev 这篇关于如何在Debian Jessie(8.8)上安装更新的R-packages?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-06 14:09