I launched an instance on AWS, with Ubuntu Server 16.04 LTS. The instance is new and I only used the following commands from start;
First, i used apt-get update and created a username
sudo apt-get update
sudo apt-get upgrade
sudo adduser <username>
Next, I installed R, using
sudo nano /etc/apt/sources.list
And i added the following line to the list at the end:
deb http://cran.rstudio.com/bin/linux/ubuntu trusty/
Then I Install R, using:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9
sudo apt-get update
sudo apt-get install r-base
And finally I install R studio server, using:
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/rstudio-server-1.0.153-amd64.deb
sudo gdebi rstudio-server-1.0.153-amd64.deb
R is installed correctly, I can type the command 'R' and use it. But RStudio Server is not installed. I get the following message:
ubuntu@ip-172-31-25-89:~$ sudo gdebi rstudio-server-1.0.153-amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
RStudio Server
RStudio is a set of integrated tools designed to help you be more productive with R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, and workspace management.
Do you want to install the software package? [y/N]:y
(Reading database ... 64867 files and directories currently installed.)
Preparing to unpack rstudio-server-1.0.153-amd64.deb ...
Unpacking rstudio-server (1.0.153) over (1.0.153) ...
Setting up rstudio-server (1.0.153) ...
useradd: user 'rstudio-server' already exists
groupadd: group 'rstudio-server' already exists
So it states 'rstudio-server already exists', which is weird cause i just launched this instance and did not do anything else except what I mentioned above. I tried once more with a different version of R studio server (on a different instance) but got the same problem. Any suggestions?