## Install RStudio on Ubuntu 16.10
After recently installing Ubuntu 16.10 (with an eye to upgrading to 17.04) I found I had some difficulty installing RStudio. After downloading the deb file from the [RStudio downloads page](https://www.rstudio.com/products/rstudio/download/), I tried to open it with Software Install but it seemed to freeze. Others had encountered this problem and suggested opening it with (the now old) Ubuntu Software Center, but I got another error - the libgstreamer library could not be found.

To get around this, and to then install RStudio, I had to install the two packages needed - [libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb](https://packages.debian.org/jessie/amd64/libgstreamer-plugins-base0.10-0/download) and [libgstreamer0.10-0_0.10.36-1.5_amd64.deb](https://packages.debian.org/jessie/amd64/libgstreamer0.10-0/download).
To do this, first I saved the two packages (rather than opening them with Software Install)

Then, I installed the two packages using -
~~~
sudo dpkg -i
~~~
The path to the .deb file is found by finding the location of the package, right-clicking it and looking at the properties - 
So, in this case to install the package, the cmd line would read -
~~~
sudo dpkg -i /home/sam/Downloads/libgstreamer0.10-0_0.10.36-1.5_amd64.deb
~~~
Remember to do this for both the packages ([libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb](https://packages.debian.org/jessie/amd64/libgstreamer-plugins-base0.10-0/download) and [libgstreamer0.10-0_0.10.36-1.5_amd64.deb](https://packages.debian.org/jessie/amd64/libgstreamer0.10-0/download)).
Then, install libjpeg62 and libedit2 -
~~~
sudo apt install libjpeg62 libedit2
~~~
And finally, install RStudio! The package can be downloaded from the [RStudio download page](https://www.rstudio.com/products/rstudio/download/), and can be installed in the same manner as above - finding the path to the package by looking at the properties, and using
~~~
sudo dpkg -i
~~~
to install the file, or opening the package with Software Install.
Tags:
R, tutorial, linux, popular
Share on social media: