无法在Ubuntu 19.10上安装r-base;建议未满足的依赖项

时间:2020-02-14 08:39:05

标签: r ubuntu dependencies

通常,我是Ubuntu(19.10; eoan)的新手,目前正在尝试安装r-base。 r-base-dev已安装。 这样做时,我会收到以下消息:

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-recommended (= 3.6.2-1xenial) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我使用以下线程尝试解决我的问题-没有任何成功。

Installing r-base; Depenency: r-recommended missing?

Issues in installing r-base-dev

为此,我在“禁用/删除/清除PPA:”部分停止了操作。因为我无法理解该过程。

https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa

对于解决问题的任何解决方案或建议,我将不胜感激。

1 个答案:

答案 0 :(得分:0)

没有关于您实际尝试的内容(和顺序)的更多信息,很难尝试查明为什么它不起作用,但是我最近在我的19.10上安装了它。我使用了以下内容。

# Get the key from the keyserver.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

# Add the repository to your sources.list. Make sure that it does not already exist
# and that it is not a typo in there. Making a backup of the file before running the
# next line is useful.
echo "deb https://cloud.r-project.org/bin/linux/ubuntu eoan-cran35/" | sudo tee -a /etc/apt/sources.list

# Install base, dev and other dependencies.
sudo apt install r-base r-base-dev r-cran-curl r-cran-openssl r-cran-xml2 libssl-dev libxml2-dev libcurl4-openssl-dev

对我来说没有任何问题。将正确的存储库添加到sources.list是非常重要的。从错误消息来看,您使用的存储库是指Ubuntu Xenial而非Ubuntu Eoan。