13

I use Debian sid (amd64), rolling updates as often as weekly. I downloaded recently the desktop version 0.99.902 of RStudio from their offical site and issued (as root, of course):

dpkg -i rstudio-0.99.902-amd64.deb

to no avail:

dpkg: dependency problems prevent configuration of rstudio: 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.

Newer versions (1.0-0) of these 2 packages are installed on the system, but those older ones (0.10-0) are not available anymore on the official Debian repos.

What should be done to have RStudio installed and fully operational under Debian sid? I have, of course, installed R debs, from official Debian repositories, without any issues...

Thanks for any help!

2
  • There's exactly the same issue under Ubuntu 16.10 (and I think that the same response is valid in this case): support.rstudio.com/hc/en-us/community/posts/…
    – matandked
    Dec 20, 2016 at 18:49
  • The rstudio preview version uses the latest version of libgstreamer, make sure you download the Debian 9+ (64-bit) version and not the Ubuntu 14/Debian 8 (64-bit) version. Apr 3, 2019 at 12:36

4 Answers 4

29

RStudio 1.0.153, released on July 20th 2017, depends on GStreamer 1.0 instead of GStreamer 0.10. It can be installed on modern Debian/Ubuntu without any additional setup, rendering this question and my answer obsolete.

To be more specific, there are two different DEB packages. One is aimed at Ubuntu 16.04 (or later) and Debian 9 (or later), comes only in 64-bit flavor and depends on newer GStreamer 1.0. Another package supports Ubuntu from 12.04 up to 15.10 and Debian 8 and it comes in both 32-bit and 64-bit flavors. This one still depends on older GStreamer 0.10.

Original answer remains below.


As of mid-2016, RStudio has hard dependency on GStreamer 0.10 and there is no way around it. You have to install libgstreamer0.10-0 and libgstreamer-plugins-base0.10-0 to use RStudio.

These packages can be easily pulled in from Debian Jessie (stable). Just add Jessie repository to your sources.list and use apt-pinning to give it lower priority:

# /etc/apt/sources.list:
deb http://httpredir.debian.org/debian jessie main
# /etc/apt/preferences.d/01_release:
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 600

Package: *
Pin: release o=Debian,n=jessie
Pin-Priority: 10

Then issue apt-get update and follow up with apt-get install libgstreamer0.10-0 libgstreamer-plugins-base0.10-0.

If you have happened to put RStudio .deb file into local repository, then use apt-get install rstudio and GStreamer0.10 will be pulled in by dependency resolver. This has additional advantage of marking these libraries as automatically installed - they will be subject to automatic removal once RStudio drop them as dependency.

But will that break my system?

No.

Upstream developers designed GStreamer0.10 and GStreamer1.0 as co-installable and able to run at the same time (source). In fact, both were available in Debian repository since September 2012 up to April 2016.

In this pinning setup, packages from Jessie repository will be pulled in only when Jessie is the only provider of requested package. There is no risk of overwriting any package from unstable with older version from stable.

Why does RStudio depend on obsolete library?

Because GStreamer0.10 is the newest version available in both Debian Jessie and Ubuntu 12.04, two distributions they want to support.

RStudio will eventually have to upgrade their dependency to GStreamer1.0, as it will gradually become the only version available. I guess this change may be introduced in spring 2017. First, support for Ubuntu 12.04 will end in April. Rstudio is likely to bump base system requirement to 14.04 - one that has both GStreamer0.10 and 1.0. Second, Debian Stretch - that will have only GStreamer1.0 available - is expected to be released around that time.

3
  • Thanks for your answer. It worked for me. Just a minor comment in case someone else gets the same error: you mentioned the file /etc/apt/preferences.d/01.release but it causes a problem during apt-get up{date,grade} since it finds it to have invalid extension. So, I just replaces the dot with a dash (i.e., /etc/apt/preferences.d/01-release:) and it worked perfectly. Aug 25, 2016 at 15:38
  • 1
    @nullgeppetto: I must have messed it up while writing answer. On my system, it's /etc/apt/preferences.d/01_releases - with underscore, not dot. I have corrected my answer. Glad you were able to figure it out and this method works for you. Aug 25, 2016 at 16:27
  • 1
    I also had to add the keys for this to work: wget -O - https://ftp-master.debian.org/keys/archive-key-8.asc | sudo apt-key add - and wget -O - https://ftp-master.debian.org/keys/archive-key-8-security.asc | sudo apt-key add -
    – Max Gordon
    Jan 1, 2017 at 19:29
1

I found Miroslaw's answer to be excellent. But, due to the passage of time you will need one more package: libssl1.0.0, so your setup apt-get will look like apt-get install libgstreamer0.10-0 libgstreamer-plugins-base0.10-0 libssl1.0.0

0
  1. Download libgstreamer0.10-0 for your machine from any of the mirrors.
  2. Open terminal in the directory where the file is downloaded.
  3. Install it using the command, sudo dpkg -i file.deb. Example sudo dpkg -i libgstreamer0.10-0_0.10.36-1ubuntu1_amd64.deb.
  4. Now open the directory where rstudio.deb is located and install it in the same way.
0

Download the libraries

http://ftp.br.debian.org/debian/pool/main/g/gstreamer0.10/libgstreamer0.10-0_0.10.36-1.5_amd64.deb http://ftp.br.debian.org/debian/pool/main/g/gst-plugins-base0.10/libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb

Install them with gdebi or dpkg -i and that is it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.