sudo nano /etc/apt/sources.list # add this line to the end deb http://cran.md.tsukuba.ac.jp/bin/linux/ubuntu trusty/ sudo apt-get install r-base libapparmor1 gdebi-core wget http://download2.rstudio.org/rstudio-server-0.97.336-amd64.deb -O rstudio.deb sudo gdebi rstudio.deb # don't forget to open the port sudo ufw allow 8787