我相信我已经按照相关CRAN站点的指示更新了R到最新版本(目前R4.0.5),但没有运气。
我在跑
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"与R版本
$ R --version
R version 3.5.2 (2018-12-20) -- "Eggshell Igloo"我所做的是,首先向/etc/apt/sources.list添加存储库
http://cloud.r-project.org/bin/linux/debian buster-cran40/ 目前的情况如下:
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/第二,获取和导入当前签名密钥:
$ sudo apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF'第三,
$ sudo apt update
$ sudo apt upgrade现在我试图安装,但失败了。
$ 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.为了解决这个问题,我尝试了几种方法,比如修复依赖关系问题,
$ sudo apt-get autoremove重新安装r-base-core,
$ sudo apt update
$ sudo apt remove r-base-core
$ sudo apt install r-base-core并在上面提到的CRAN站点上使用命令。
$ sudo apt install -t buster-cran40 r-base但是我仍然有RV3.5.2,也就是说,我总是得到R3.5.2而不是R4.0.5。
我如何得到R4.0.5在我的覆盆子皮?
更多信息:
$ 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发布于 2021-10-31 16:21:04
试着升级到斗牛士。R基核>4是可用的.我成功地安装了它
https://unix.stackexchange.com/questions/644444
复制相似问题