Ubuntu: Unable to install R Studio


I tried to install RStudio after installing R in Ubuntu. When I clicked to install via Ubuntu software, clicking the install button does nothing. But sometimes when I click it, it starts loading and after a while it says rstudio installed. But it's not really installed.

So I installed it via terminal using:

$ 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  

What are the steps to rectify this error?


Installing from a .deb file through dpkg does not resolve dependency issues the same way installation through apt will. After running the sudo dpkg -i yourpackage.deb, you should run sudo apt-get install -f to fix and complete the installation if any errors were encountered by dpkg.


Your best bet is to use gdebi to do RStudio installations. It automatically resolves dependencies (unlike dpkg).

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

In fact, that's what RStudio themselves recommends for rstudio-server installation.


For me it worked like this:

Add the following entry in /etc/apt/sources.list file

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

All the mirrors are listed here:

You can find out your corresponding Ubuntu release by doing this on command line

lsb_release -a  

After that

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

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »