
최신 버전의 R을 설치하기 위한 몇 가지 지침을 찾았지만 모두 엄청나게 복잡합니다. 그럼에도 불구하고 시도해 보았으나 효과가 없었습니다. 이 작업을 완료하는 데 클릭 방식이 정말 없나요?
나는 노력했다
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran36/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt update
두 개의 다른 URL을 사용하고 항상 다음과 같은 것을 얻습니다.
Get:21 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages [51.4 kB]
Reading package lists... Done
E: The repository 'http://www.stats.bris.ac.uk/R/bin/linux/ubuntu bionic/ Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.canonical.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5
E: The repository 'http://archive.canonical.com precise Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
(이 작업을 수행하는 것이 불편할지라도 --allow-unauthenticated를 사용하여 시도했지만 아무 것도 바뀌지 않았습니다.)
나도 시도했다
sudo echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" >> /etc/apt/sources.list
하지만 그것도 도움이 되지 않았습니다. (이 때문에 해당 파일을 삭제해야 했습니다. 말도 안 돼요)
그건 그렇고, r-project 웹 사이트 자체에는 ``최신 R 3.4 패키지를 얻으려면 다음과 같은 항목을 추가하십시오.
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
``
마지막으로, 당연히 소스에서 설치하려고 하면 메시지와 함께 충돌이 발생합니다.
Configure: error: Maybe check LDFLAGS for paths to Fortran libraries?
실행해야 하는 일부 소프트웨어에 R3.6이 필요하기 때문에 R3.6이 필요합니다. 하지만 인터넷 검색을 통해 R3.6이 존재하지 않는 것 같습니다.
답변1
추가하려는 저장소에 오류가 있습니다.
https://cloud.r-project.org/bin/linux/ubuntu생체 공학-cran36/
bionic-cran35 저장소를 사용하세요. R3.6은 우분투 18에 잘 설치됩니다. digitalocean에서 지침을 찾을 수 있습니다.
https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04-quickstart
19년 봄의 이전 머신에서는 35에 r3.6이 있기 전에도 36 저장소를 사용했습니다. 결국 19.10 패키지를 설치했는데 정상적으로 작동했습니다. 방금 제거하고 오늘 적절한 저장소를 사용하여 내 컴퓨터에 r3.6을 올바르게 설치했습니다.