在Ubuntu 16.04上安装R 3.5的问题

时间:2018-12-04 13:15:10

标签: r ubuntu ubuntu-16.04

最近,我不得不将R从3.4.4更新到3.5,以安装生物导体包装。为此,我按照了link上的步骤进行操作。

但是现在我遇到的问题是r studio无法解决该问题:

R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is
a custom build of R, was it built with the --enable-R-shlib option?

因此,我尝试使用以下命令重新安装R 3.4.4:

sudo apt-get install r-base

但是它返回了我这个错误:

 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-recommended (= 3.5.1-2xenial) but it is not
 going to be installed

  E: Unable to correct problems, you have held broken packages.

有人知道如何完全删除R(3.5)并重新安装3.4版本吗?

谢谢大家。

编辑:R在3.5版本的命令行上工作,并且我无法安装其他软件包,例如:

$ sudo apt-get install libgdal-dev

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.

以下信息可能有助于解决这种情况:

以下软件包具有未满足的依赖性:

 libgdal-dev : Depends: libarmadillo-dev but it is not going to be installed
               Depends: libdap-dev but it is not going to be installed
               Depends: libgeotiff-dev but it is not going to be installed
               Depends: libgif-dev but it is not going to be installed
               Depends: libhdf4-alt-dev but it is not going to be installed
               Depends: libhdf5-dev but it is not going to be installed
               Depends: libjpeg-dev
               Depends: libmysqlclient-dev but it is not going to be installed
               Depends: libnetcdf-dev but it is not going to be installed
               Depends: libpoppler-private-dev but it is not going to be installed
               Depends: libpq-dev but it is not going to be installed
               Depends: libtiff-dev
               Depends: libxml2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

0 个答案:

没有答案