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
  • 70,465
  • English is preferred here as you will get more eyes on your post that can determine what you are asking and hopefully provide an answer If you would be so kind as to provide the terminal output in English This would increase the likelihood of a quality answer. I'm going to attempt to answer your question, but be aware that I'm working from a translation that may or may not be accurate and [edit]ing your post as suggested will help us help you! – Elder Geek Mar 23 '17 at 15:31
  • Close voters - Answered – Elder Geek Mar 23 '17 at 15:47

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,023
  • 25
  • 98
  • 183