Dear all, I am trying to install R 3.5.1 on my Ubuntu 14.04 system; however, I am getting the following message : sudo apt-get install r-base [...] The following packages have unmet dependencies: r-base : Depends: r-recommended (= 3.5.1-1trusty) but it is not going to be installed E: Unable to correct problems, you have held broken packages. In the file /etc/apt/sources.list , I have set up : deb https://cloud.r-project.org/bin/linux/ubuntu trusty/ deb https://cloud.r-project.org/bin/linux/ubuntu trusty-cran35/ Would you please advise, what shall I do next ? Thanks a lot ! -- bogdan [[alternative HTML version deleted]]
G'day Bogdan, On Fri, 24 Aug 2018 18:28:59 -0700 Bogdan Tanasa <tanasa at gmail.com> wrote:> I am trying to install R 3.5.1 on my Ubuntu 14.04 system; however, I > am getting the following message : > > sudo apt-get install r-base > [...] > The following packages have unmet dependencies: > r-base : Depends: r-recommended (= 3.5.1-1trusty) but it is not > going to be installed > E: Unable to correct problems, you have held broken packages.For me such problems are usually fixed by specifying the package that "is not going to be installed" but on which the package I want to install depends also to apt-get install. What does sudo apt-get install r-base r-recommended do on your system? Cheers, Berwin
Hello Bogdan, This reply is off topic for the list, appologies. This problem is more r-sig-debian related (see below). Though Berwin already mentionned a possible solution, here is another. On Fri, Aug 24, 2018 at 06:28:59PM -0700, Bogdan Tanasa wrote:> I am trying to install R 3.5.1 on my Ubuntu 14.04 system;You are trying to install R (latest version) on a system that is outdated by the latest LTS (16.04) and more than four years old now. ;-) If you go to: https://cloud.r-project.org/bin/linux/ubuntu/ You'll get some hints, like: "R 3.5 packages for Ubuntu on i386 and amd64 are available for most stable Desktop releases of Ubuntu until their official end of life date. However, only the latest Long Term Support (LTS) release is fully supported." Note the *only the latest LTS* ;-) You'll also get the r-sig-debian list link to report issues.> Would you please advise, what shall I do next ? Thanks a lot !If you have the time, upgrade your LTS by migrating your system from 14.04 to 16.04 and then 18.04 (Bionic Beaver). Best regards, -- Beno?t -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 866 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20180825/5b4a7474/attachment-0002.sig>
Dear Berwin, thank you for your help. On my system, after "sudo apt-get install r-base r-recommended", it says : [..] The following packages have unmet dependencies: r-recommended : Depends: r-cran-kernsmooth (>= 2.2.14) but it is not going to be installed Depends: r-cran-mass but it is not going to be installed Depends: r-cran-class but it is not going to be installed Depends: r-cran-nnet but it is not going to be installed E: Unable to correct problems, you have held broken packages. Although these packages seem to be well installed .. On Sat, Aug 25, 2018 at 12:51 AM Berwin A Turlach <berwin.turlach at gmail.com> wrote:> G'day Bogdan, > > On Fri, 24 Aug 2018 18:28:59 -0700 > Bogdan Tanasa <tanasa at gmail.com> wrote: > > > I am trying to install R 3.5.1 on my Ubuntu 14.04 system; however, I > > am getting the following message : > > > > sudo apt-get install r-base > > [...] > > The following packages have unmet dependencies: > > r-base : Depends: r-recommended (= 3.5.1-1trusty) but it is not > > going to be installed > > E: Unable to correct problems, you have held broken packages. > > For me such problems are usually fixed by specifying the package that > "is not going to be installed" but on which the package I want to > install depends also to apt-get install. > > What does > sudo apt-get install r-base r-recommended > do on your system? > > Cheers, > > Berwin >[[alternative HTML version deleted]]