Raspbian GNU/Linux 10(버스터)에 R 4.0.*을 설치하는 방법은 무엇입니까?

Raspbian GNU/Linux 10(버스터)에 R 4.0.*을 설치하는 방법은 무엇입니까?

나는 지시를 따랐다고 믿는다크레인 웹사이트R을 최신 버전(현재 R 4.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

하지만 여전히 R 버전 3.5.2가 있습니다. 즉, 항상 R 4.0.5 대신 R 3.5.2를 얻습니다.

내 라즈베리 파이에 R 4.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

답변1

방해 공작원을 불스아이로 업그레이드해 보세요. r-base-core >4를 사용할 수 있습니다. 성공적으로 설치했어요

관련 정보