在Ubuntu Disco 19.04上安装R 3.6

FMM*_*FMM 4 r

我有新的Ubuntu迪斯科19.04,并且按照这里的说明安装新的R 3.6。

但是,在安装密钥并通过以下方式添加存储库之后:

sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu disco-cran35/'
Run Code Online (Sandbox Code Playgroud)

并运行:

sudo apt update
sudo apt install r-base
Run Code Online (Sandbox Code Playgroud)

我得到:

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 (>= 3.6.0-1cosmic) but 3.5.2-1build1 is to be installed
          Depends: r-recommended (= 3.6.0-1cosmic) but 3.5.2-1build1 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我可以通过安装R

sudo apt install r-base
Run Code Online (Sandbox Code Playgroud)

在添加上述存储库之前,但3.5.2已安装版本。

有谁知道如何安装而不需要从源代码进行编译?

小智 11

我遵循相同的说明,也得到了R 3.5。在运行之前添加回购协议的pubkey使apt update我获得R 3.6。

这些应该是将R 3.6安装到全新的Ubuntu 19.04中的步骤:

sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu disco-cran35/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt update
sudo apt install r-base-dev
Run Code Online (Sandbox Code Playgroud)

更改存储库详细信息将允许安装到其他Ubuntu版本,例如,对于Ubuntu 16.04,将“ disco”替换为“ xenial”。