在全新安装 Ubuntu GNOME 16.10 之后,我再也无法安装 RStudio Desktop x64 了。
我试图通过
安装最新的*.deb
文件
sudo dpkg -i ./rstudio-0.99.903-amd64.deb
导致
dpkg: dependency problems prevent configuration of rstudio
rstudio depends on libjpeg62; but:
Package libjpeg62 is not installed.
rstudio depends on libgstreamer0.10-0; but:
Package libgstreamer0.10-0 iis not installed.
rstudio depends on ibgstreamer-plugins-base0.10-0; but:
Package libgstreamer-plugins-base0.10-0 is not installed.
我试图通过以下方式安装libgstreamer:
sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
也导致错误:
E: Package libgstreamer0.10-dev coulnd not be found. [...]
似乎on debian the problem could be solved,但对于Ubuntu 16.10,我不确定要添加到sources.list中的内容以遵循相同的指令。 关于如何解决这个问题的任何想法?
答案 0 :(得分:16)
这就是我在Ubuntu 16.10中所做的事情
下载“libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb”
来自https://packages.debian.org/jessie/amd64/libgstreamer-plugins-base0.10-0/download
下载“libgstreamer0.10-0_0.10.36-1.5_amd64.deb”
来自https://packages.debian.org/jessie/amd64/libgstreamer0.10-0/download
在
sudo apt install libjpeg62 libedit2
最后安装rstudio-0.99.903-amd64.deb
我还使用“sudo gdebi ...”来代替“sudo dpkg -i ...”来安装软件包。
答案 1 :(得分:10)
对于类似的解决方案,但其中包含确保过时的软件包不会更新的其他说明,请参阅下面的替代方案。感谢Mike Williamson提供了出色的说明,转载如下:
1)获取最新的R Studio Daily Build here,但请注意,它不一定稳定。
2)安装,将包的名称转换为您下载的包的名称 - 如果您转到下载目录可能最简单 - 并且您可能会发现缺少包裹:
sudo dpkg -i rstudio-1.0.124-amd64.deb
3)下载缺少的软件包(缺少软件包导致安装失败):
wget http://ftp.ca.debian.org/debian/pool/main/g/gstreamer0.10/libgstreamer0.10-0_0.10.36-1.5_amd64.deb
wget http://ftp.ca.debian.org/debian/pool/main/g/gst-plugins-base0.10/libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb
4)安装它们:
sudo dpkg -i libgstreamer0.10-0_0.10.36-1.5_amd64.deb
sudo dpkg -i libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb
5)确保在下次软件更新时不会覆盖:
sudo apt-mark hold libgstreamer-plugins-base0.10-0
sudo apt-mark hold libgstreamer0.10
6)安装RStudio(将名称更改为您下载的版本):
sudo gdebi rstudio-1.1.5-amd64.deb
7)启动RStudio:
rstudio
答案 2 :(得分:0)
完成
Download "libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb"
from https://packages.debian.org/jessie/amd64/libgstreamer-plugins-base0.10-0/download
Download "libgstreamer0.10-0_0.10.36-1.5_amd64.deb"
from https://packages.debian.org/jessie/amd64/libgstreamer0.10-0/download
Install two packages above
sudo apt install libjpeg62 libedit2
finally install rstudio-0.99.903-amd64.deb