首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Raspbian /Linux 10 (buster)上安装R4.0.*?

如何在Raspbian /Linux 10 (buster)上安装R4.0.*?
EN

Unix & Linux用户
提问于 2021-04-10 13:56:20
回答 1查看 723关注 0票数 5

我相信我已经按照相关CRAN站点的指示更新了R到最新版本(目前R4.0.5),但没有运气。

我在跑

代码语言:javascript
复制
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"

与R版本

代码语言:javascript
复制
$ R --version
R version 3.5.2 (2018-12-20) -- "Eggshell Igloo"

我所做的是,首先向/etc/apt/sources.list添加存储库

代码语言:javascript
复制
http://cloud.r-project.org/bin/linux/debian buster-cran40/ 

目前的情况如下:

代码语言:javascript
复制
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://cloud.r-project.org/bin/linux/debian buster-cran40/

第二,获取和导入当前签名密钥:

代码语言:javascript
复制
$ sudo apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'

第三,

代码语言:javascript
复制
$ sudo apt update
$ sudo apt upgrade

现在我试图安装,但失败了。

代码语言:javascript
复制
$ sudo apt-get install r-base r-base-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 r-base : Depends: r-base-core (>= 4.0.5-1~bustercran.0) but 3.5.2-1 is to be installed
          Depends: r-recommended (= 4.0.5-1~bustercran.0) but it is not going to be installed
          Recommends: r-base-html but it is not going to be installed
 r-base-dev : Depends: r-base-core (>= 4.0.5-1~bustercran.0) but 3.5.2-1 is to be installed
E: Unable to correct problems, you have held broken packages.

为了解决这个问题,我尝试了几种方法,比如修复依赖关系问题,

代码语言:javascript
复制
$ sudo apt-get autoremove

重新安装r-base-core

代码语言:javascript
复制
$ sudo apt update 
$ sudo apt remove r-base-core
$ sudo apt install r-base-core

并在上面提到的CRAN站点上使用命令

代码语言:javascript
复制
$ sudo apt install -t buster-cran40 r-base

但是我仍然有RV3.5.2,也就是说,我总是得到R3.5.2而不是R4.0.5。

我如何得到R4.0.5在我的覆盆子皮?

编辑

更多信息:

代码语言:javascript
复制
$ apt search r-base-core
Sorting... Done
Full Text Search... Done
pandoc/stable 2.2.1-3+b2 armhf
  general markup converter

r-base/buster-cran40 4.0.5-1~bustercran.0 all
  GNU R statistical computation and graphics system

r-base-core/stable,now 3.5.2-1 armhf [installed]
  GNU R core of statistical computation and graphics system

r-base-core-dbg/stable 3.5.2-1 armhf
  GNU R debug symbols for statistical comp. language and environment

r-cran-date/stable 1.2.38-1+b1 armhf
  GNU R package for date handling
EN

回答 1

Unix & Linux用户

发布于 2021-10-31 16:21:04

试着升级到斗牛士。R基核>4是可用的.我成功地安装了它

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/644444

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档