0

I found this question where it is explained how to remove a borken package using Syanptic.

I tried this solution, but when I find the borken package I can't remove it.

enter image description here

Here, when I right-click the package, only "Unmark" option is available, the "Remove" is shaded and can't click it. Same for any other option but Unmark.

Also, I came to this situation when used the "Mark to install", otherwise the Broken dependencies are not even shown because there is none.

How could I remove the broken package so I can finally install it?

When I try to use sudo apt-get install r-base I got the following error:

Los siguientes paquetes tienen dependencias incumplidas:
 r-base : Depende: r-base-core (>= 3.3.3-1xenial0) pero no va a instalarse
          Depende: r-recommended (= 3.3.3-1xenial0) pero no va a instalarse
          Recomienda: r-base-html pero no va a instalarse
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.

Maybe somewhere there is the problem?

Masclins
  • 143
  • Looks like the package is marked as to be removed already and all you have to do is to click on Aplicar. – mook765 Mar 31 '17 at 08:11
  • It is marked to Install. When I click Aplicar it says I should first solve broken packages. – Masclins Mar 31 '17 at 08:52
  • Would be good to know which version of Ubuntu you use. The recent version of r-base in the xenial repository (main,universe) is 3.2.3-4. You are trying to install version 3.3..3-1xenial0. Have you added any ppa (sudo add-apt-repository)? – mook765 Mar 31 '17 at 09:41
  • Not that I know. I had followed instructions here: https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-16-04-2 – Masclins Mar 31 '17 at 09:42
  • This tutorial let you add a ppa (sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/') – mook765 Mar 31 '17 at 09:49
  • then, so did I. Sorry for my little knowledge of Ubuntu – Masclins Mar 31 '17 at 10:01
  • 1
    If you can live with version 3.2.3-4 I'd recommend to remove the ppa (sudo add-apt-repository -r 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/') first and install from the official repository with sudo apt update and sudo apt install r-base. – mook765 Mar 31 '17 at 10:07
  • It seems like the problem might be I have Ubuntu 14.04. I used https://www.digitalocean.com/community/tutorials/how-to-set-up-r-on-ubuntu-14-04 and everything went well – Masclins Mar 31 '17 at 10:08
  • Congratulations, you solved the problem. Please consider writing an answer by yourself and mark it as accepted. – mook765 Mar 31 '17 at 10:13

1 Answers1

1

In the end it happened that I was using Ubuntu 14.04 but following instructions for Ubuntu 16.04.

After finding and following the correct instructions it had been solved.

Instructions followed: 16.04: https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-16-04-2 14.04: https://www.digitalocean.com/community/tutorials/how-to-set-up-r-on-ubuntu-14-04

Masclins
  • 143