R——无法在 Ubuntu 中安装 R

R——无法在 Ubuntu 中安装 R

我花了一整天时间尝试在 Ubuntu 17.10 上安装 R 和 RStudio。我尝试了这个 stackexchange 上的每个解决方案,但都没有用。我尝试更新 from source.listapt-get使用 创建密钥gpg,但每次我尝试运行sudo apt-get install r-base r-base-core终端时都会显示:

The following packages have unmet dependencies:
 r-base-core : Depends: libc6 (>= 2.27) but 2.26-0ubuntu2.1 is to be installed
               Depends: libcurl4 (>= 7.28.0) but it is not installable
               Depends: libicu60 (>= 60.1-1~) but it is not installable
               Recommends: r-recommended but it is not going to be installed
               Recommends: r-base-dev but it is not going to be installed
               Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

另外,当我尝试使用 gpg 解决方案时,它总是显示以下消息:

gpg: key 51716619E084DAB9: "Michael Rutter <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

答案1

几天前,我安装了 R 和 RStudioUbuntu 18.04

对于我来说,全新安装 Ubuntu 18.04 桌面所需的步骤是:

wget https://download1.rstudio.org/rstudio-xenial-1.1.453-amd64.deb sudo apt install r-base r-base-dev libjpeg62 sudo dpkg -i rstudio-xenial-1.1.453-amd64.deb

相关内容