1

I installed R on my computer, but the version was too old so I removed it. I wanted to install another one but I couldn't. I used this command:

sudo apt-get install r-base 

I got this message:

Les paquets suivants contiennent des dépendances non satisfaites :
 r-base : Dépend: r-base-core (>= 3.3.3-1xenial0) mais ne sera pas installé
          Dépend: r-recommended (= 3.3.3-1xenial0) mais ne sera pas installé
          Recommande: r-base-html mais ne sera pas installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

It means that there's a problem with dependencies. How can I fix it?

Zanna
  • 72,312

1 Answers1

0

It appears that you are missing a couple of dependencies for the R version you are attempting to install.

Specifically, r-base-core and r-recommended of versions = or greater than 3.3.1

Compatible versions are available in Ubuntu 16.10 (and beyond) by enabling the Universe repository and issuing the command

sudo apt-get install r-base-core r-recommended

If you are running an earlier version of Ubuntu you'll have to either upgrade to 16.10 or use a version of R supported by your current OS.

Elder Geek
  • 36,752