Skip to content

Instantly share code, notes, and snippets.

@plembo
Created November 13, 2018 16:30
Show Gist options
  • Save plembo/e502508a51fd43e3c3d676c583a6bcbc to your computer and use it in GitHub Desktop.
Save plembo/e502508a51fd43e3c3d676c583a6bcbc to your computer and use it in GitHub Desktop.
Install Current R on Ubuntu 18.04 LTS

Installing the current version of R on Ubuntu 18.04 LTS

Many older sources describe adding the open source R project repo for xenial (16.04) to do this. That's just wrong, and will result in installation errors.

Instead, clean everything out with an "apt remove --purge", "apt autoremove", "apt update" and "apt upgrade". Then remove any line for cloud.r-project.org in /etc/apt/sources.list. Finally, add the now released repo for bionic (18.04):

sudo apt-add-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
sudo apt update
sudo apt install r-base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment