Re- Installing R Linux Ubuntu: Unmet Dependencies R

Unmet dependencies installing R 3.6.2 on Ubuntu 18.14 LTS

I took a look at the etc/apt/sources.list file and realised that I had the same repository repeated. I deleted two lines and the problem was solved.

Best way to install R on Ubuntu 20.04?

Here is what I do in the Rocker container r-ubuntu for the 20.04 image:

  1. Install software-properties-common to be able to say add-apt-repository

  2. Add the rrutter4.0 PPA for R itself (same as CRAN)

    add-apt-repository --enable-source --yes "ppa:marutter/rrutter4.0"

  3. Add the c4d4u.teams repo for over 4k CRAN packages:

    add-apt-repository --enable-source --yes "ppa:c2d4u.team/c2d4u4.0+"

  4. Run apt install r-base (and a few more).

In a narrow sense you only need 2 (as you likely do not 1 on a full Ubuntu system) and 4 but you may as well do 3.

You can of course also just to docker pull rocker/r-ubuntu:20.04 and get that container pre-made, but I use both: a container for tests, and these settings on my 20.04 machine(s).

Receiving Unmet dependency while installing r-base on Ubuntu 14.10

Step 1:

You can use any of the below in your /etc/apt/sources.list file to get the latest copy of R, replace <my.favorite.cran.mirror> by the actual URL of your favorite CRAN mirror. See http://cran.r-project.org/mirrors.html for the list of CRAN mirrors.

deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu utopic/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu lucid/

Step 2:

To install the complete R system, use below on command line:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base

For a detailed instruction, please follow the steps given in the link here!

Unmet dependencies during r installation (Debian)

The problem was indeed in the file "/etc/apt/sources.list", where I have added the bellow links with the command line sudo add-apt-repository 'deb link'.

deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main
deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main
deb http://deb.debian.org/debian buster-backports main
deb-src http://deb.debian.org/debian buster-backports main
#deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
# deb-src https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
deb http://cloud.r-project.org/bin/linux/debian buster-cran40/
# deb-src http://cloud.r-project.org/bin/linux/debian buster-cran40/


Related Topics



Leave a reply



Submit