Results 1 to 5 of 5

Thread: Can't install R on Ubuntu 14.04: unmet dependencies

  1. #1
    Join Date
    Apr 2019
    Beans
    2

    Can't install R on Ubuntu 14.04: unmet dependencies

    I use Linux Mint 17.2 Rafaela Ubuntu 14.04.6 LTS

    I try to install R 3.0.1.

    I run:

    Code:
    sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu trusty-cran35/"
    sudo apt-get update
    sudo apt-get install r-base
    And I get the problem:
    Code:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    
    The following packages have unmet dependencies.
     r-base : Depends: r-recommended (= 3.5.3-1trusty) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    How I can fix it?
    Last edited by deadflowr; April 9th, 2019 at 05:02 PM. Reason: reet fonts to forum defaults; fixed code tags

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    10,169
    Distro
    Ubuntu

    Re: Can't install R on Ubuntu 14.04: unmet dependencies

    Thread moved to MINT
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Apr 2015
    Beans
    109
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Can't install R on Ubuntu 14.04: unmet dependencies

    R 3.5 packages from that repository are not supported for you Ubuntu release. See the following statement from that repositories README file:

    '''
    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. As of November 18, 2018 the supported releases are Xenial Xerus (16.04; LTS), Trusty Tahr (14.04; LTS), Bionic Beaver (18.04;LTS), and Cosmic Cuttlefish (18.10). Note, to install R 3.5 packages, a different sources.list entry is needed. See below for details.

    R 3.4 packages for Ubuntu on i386 and amd64 are available for all stable Desktop releases of Ubuntu prior to Bionic Beaver (18.04) until their official end of life date. However, only the latest Long Term Support (LTS) release is fully supported. As of November 18, 2018 the supported releases are Xenial Xerus (16.04; LTS), and Trusty Tahr (14.04; LTS).

    See https://wiki.ubuntu.com/Releases for details.

    For additional binary packages for R (currently 4,000+), check out the CRAN2deb4ubuntu PPA: https://launchpad.net/~marutter/+archive/ubuntu/c2d4u or https://launchpad.net/~marutter/+arc...buntu/c2d4u3.5 depending on which version of R you are using.
    '''

    This is probably your problem.

    The output you have confirms the issue is that your Ubuntu release is not supported.

    The following packages have unmet dependencies.
    r-base : Depends: r-recommended (= 3.5.3-1trusty) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    Last edited by huff2; April 10th, 2019 at 12:25 AM.

  4. #4
    Join Date
    Apr 2019
    Beans
    2

    Re: Can't install R on Ubuntu 14.04: unmet dependencies

    Thanks, but I fixed all by sudo apt-get install r-base-dev instead sudo apt-get install r-base. ​I don't know why....

  5. #5
    Join Date
    Apr 2015
    Beans
    109
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Can't install R on Ubuntu 14.04: unmet dependencies

    Read through the following link: https://cran.r-project.org/bin/linux/ubuntu/README.html

    This is an excerpt:

    The other r-cran-* packages shipped with Ubuntu are installed into the directory /usr/lib/R/site-library.

    Installing R packages not provided with Ubuntu first requires tools to compile the packages from source. These tools are installed via the R development package with
    sudo apt-get install r-base-dev

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •