无法安装 R Studio

无法安装 R Studio

RStudio我在 Ubuntu 中安装后尝试安装R。当我单击通过 安装时Ubuntu software,单击安装按钮没有任何反应。但有时当我单击它时,它会开始加载,过一会儿它就会显示rstudio installed。但它并没有真正安装。

因此我通过终端安装它:

$ sudo dpkg -i rstudio-0.99.902-i386.deb 
Selecting previously unselected package rstudio.
(Reading database ... 175645 files and directories currently installed.)
Preparing to unpack rstudio-0.99.902-i386.deb ...
Unpacking rstudio (0.99.902) ...
dpkg: dependency problems prevent configuration of rstudio:
 rstudio depends on libjpeg62; however:
  Package libjpeg62 is not installed.
 rstudio depends on libgstreamer0.10-0; however:
  Package libgstreamer0.10-0 is not installed.
 rstudio depends on libgstreamer-plugins-base0.10-0; however:
  Package libgstreamer-plugins-base0.10-0 is not installed.

dpkg: error processing package rstudio (--install):
 dependency problems - leaving unconfigured
Processing triggers for shared-mime-info (1.5-2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Errors were encountered while processing:
 rstudio

纠正此错误的步骤是什么?

答案1

.deb通过文件安装dpkg无法像通过安装一样解决依赖性问题apt。运行 后,如果 遇到任何错误,sudo dpkg -i yourpackage.deb则应运行来修复并完成安装。sudo apt-get install -fdpkg

答案2

最好的办法是使用gdebi进行 RStudio 安装。它会自动解决依赖关系(与 不同dpkg)。

sudo apt-get install gdebi-core
sudo gdebi rstudio-0.99.902-i386.deb

事实上,RStudio 自己也建议rstudio-服务器安装。

答案3

对我来说它是这样工作的:

/etc/apt/sources.list在文件中添加以下条目

deb https://cran.cnr.berkeley.edu/bin/linux/ubuntu xenial/

列出了所有镜像这里

你可以在命令行中执行此操作来找到相应的 Ubuntu 版本

lsb_release -a

在那之后

sudo apt-get update
sudo apt-get install r-base

答案4

对我来说,当我安装了以下依赖项时它就起作用了:

libgstreamer-plugins-base0.10-0_0.10.36-2ubuntu0.1_amd64.deb libgstreamer0.10-0_0.10.36-1.5ubuntu1_amd64.deb libjpeg62-turbo_1.5.2-2+b1_amd64.deb

全部来自https://packages.ubuntu.com/

相关内容