To install R Studio in ubuntu 16.04 follow the steps:
Step 1: Download the R Studio package:
$ wget --tries=3 --timeout=120 https://download1.rstudio.org/rstudio-xenial-1.1.383-amd64.deb
--2018-03-31 08:16:11-- https://download1.rstudio.org/rstudio-xenial-1.1.383-amd64.deb
Resolving download1.rstudio.org (download1.rstudio.org)... 54.230.190.45, 54.230.190.44, 54.230.190.119, ...
Connecting to download1.rstudio.org (download1.rstudio.org)|54.230.190.45|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68194982 (65M) [application/x-deb]
Saving to: ‘rstudio-xenial-1.1.383-amd64.deb’
rstudio-xenial-1.1.383-amd64.deb 100%[===================================================================>] 65.04M 957KB/s in 75s
2018-03-31 08:17:26 (887 KB/s) - ‘rstudio-xenial-1.1.383-amd64.deb’ saved [68194982/68194982]
$
Step 2: Install R Studio:
$ sudo dpkg -i rstudio-xenial-1.1.383-amd64.deb
Selecting previously unselected package rstudio.
(Reading database ... 289186 files and directories currently installed.)
Preparing to unpack rstudio-xenial-1.1.383-amd64.deb ...
Unpacking rstudio (1.1.383) ...
dpkg: dependency problems prevent configuration of rstudio:
rstudio depends on libjpeg62; however:
Package libjpeg62 is not installed.
dpkg: error processing package rstudio (--install):
dependency problems - leaving unconfigured
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:
rstudio
$
Step 3: Since, errors were encountered, let us install the missing dependencies:
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic linux-image-4.13.0-32-generic linux-image-extra-4.13.0-32-generic
linux-signed-image-4.13.0-32-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libjpeg62
The following NEW packages will be installed:
libjpeg62
0 upgraded, 1 newly installed, 0 to remove and 126 not upgraded.
1 not fully installed or removed.
Need to get 78.9 kB of archives.
After this operation, 188 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libjpeg62 amd64 1:6b2-2 [78.9 kB]
Fetched 78.9 kB in 1s (48.9 kB/s)
Selecting previously unselected package libjpeg62:amd64.
(Reading database ... 291031 files and directories currently installed.)
Preparing to unpack .../libjpeg62_1%3a6b2-2_amd64.deb ...
Unpacking libjpeg62:amd64 (1:6b2-2) ...
Setting up libjpeg62:amd64 (1:6b2-2) ...
Setting up rstudio (1.1.383) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
$
Step 1: Download the R Studio package:
$ wget --tries=3 --timeout=120 https://download1.rstudio.org/rstudio-xenial-1.1.383-amd64.deb
--2018-03-31 08:16:11-- https://download1.rstudio.org/rstudio-xenial-1.1.383-amd64.deb
Resolving download1.rstudio.org (download1.rstudio.org)... 54.230.190.45, 54.230.190.44, 54.230.190.119, ...
Connecting to download1.rstudio.org (download1.rstudio.org)|54.230.190.45|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68194982 (65M) [application/x-deb]
Saving to: ‘rstudio-xenial-1.1.383-amd64.deb’
rstudio-xenial-1.1.383-amd64.deb 100%[===================================================================>] 65.04M 957KB/s in 75s
2018-03-31 08:17:26 (887 KB/s) - ‘rstudio-xenial-1.1.383-amd64.deb’ saved [68194982/68194982]
$
Step 2: Install R Studio:
$ sudo dpkg -i rstudio-xenial-1.1.383-amd64.deb
Selecting previously unselected package rstudio.
(Reading database ... 289186 files and directories currently installed.)
Preparing to unpack rstudio-xenial-1.1.383-amd64.deb ...
Unpacking rstudio (1.1.383) ...
dpkg: dependency problems prevent configuration of rstudio:
rstudio depends on libjpeg62; however:
Package libjpeg62 is not installed.
dpkg: error processing package rstudio (--install):
dependency problems - leaving unconfigured
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:
rstudio
$
Step 3: Since, errors were encountered, let us install the missing dependencies:
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic linux-image-4.13.0-32-generic linux-image-extra-4.13.0-32-generic
linux-signed-image-4.13.0-32-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libjpeg62
The following NEW packages will be installed:
libjpeg62
0 upgraded, 1 newly installed, 0 to remove and 126 not upgraded.
1 not fully installed or removed.
Need to get 78.9 kB of archives.
After this operation, 188 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 libjpeg62 amd64 1:6b2-2 [78.9 kB]
Fetched 78.9 kB in 1s (48.9 kB/s)
Selecting previously unselected package libjpeg62:amd64.
(Reading database ... 291031 files and directories currently installed.)
Preparing to unpack .../libjpeg62_1%3a6b2-2_amd64.deb ...
Unpacking libjpeg62:amd64 (1:6b2-2) ...
Setting up libjpeg62:amd64 (1:6b2-2) ...
Setting up rstudio (1.1.383) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
$
Installation is now complete. Let us verify the installation :
$ which rstudio
/usr/bin/rstudio
$
We can verify that the installation is now complete.
$ which rstudio
ReplyDeleterstudio not found