You can find step 1-6 in R official website here here
sudo apt update -qq
sudo apt install --no-install-recommends software-properties-common dirmngr
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
Replace $(lsb_release -cs)
with jammy
as
follows:
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/"
sudo apt install --no-install-recommends r-base
libicu70
, which is not available in
Ubuntu 23.10
, (you can obtain the download link from the
Ubuntu package here)wget http://nz.archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu70_70.1-2_amd64.deb
sudo dpkg -i libicu70_70.1-2_amd64.deb
libtiff
use the following
command. (the download link is available from the Ubuntu packages here).wget http://security.ubuntu.com/ubuntu/pool/main/t/tiff/libtiff5_4.3.0-6ubuntu0.8_amd64.deb
sudo dpkg -i libtiff5_4.3.0-6ubuntu0.8_amd64.deb
sudo apt install --no-install-recommends r-base
Ubuntu 22/Debian 12
from Posit
Websitesudo dpkg -i rstudio-2023.12.1-402-amd64.deb
sudo apt --fix-broken install