无法安装 R-base。尝试了这里列出的所有方法,甚至重新安装了 Ubuntu

无法安装 R-base。尝试了这里列出的所有方法,甚至重新安装了 Ubuntu
The following packages have unmet dependencies:
 r-base : Depends: r-recommended (= 3.5.3.20190412-1~ubuntu18.04.1~ppa1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我已经重新安装了 Ubuntu,并尝试清理损坏的软件包。它仍然显示相同的错误。

输出apt-cache policy r-base

r-base:
 Installed: (none)
 Candidate: 3.5.3.20190412-1~ubuntu18.04.1~ppa1
 Version table:
    3.5.3.20190412-1~ubuntu18.04.1~ppa1 500
       500 ppa.launchpad.net/marutter/rdev/ubuntu bionic/main amd64 Packages 
       500 ppa.launchpad.net/marutter/rdev/ubuntu bionic/main i386 Packages
    3.4.4-1ubuntu1 500 
       500 in.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 
       500 in.archive.ubuntu.com/ubuntu bionic/universe i386 Packages 

答案1

来自评论:

  • 消除Michael Rutter 的 PPA

    sudo add-apt-repository -r ppa:marutter/rdev
    
  • 尝试从 Ubuntu 官方存储库再次安装 R

    sudo apt install r-base
    

相关内容