r - 在 Wheezy 7.8 (Raspbian) 上安装 R 3.1.2 失败

标签 r raspberry-pi raspbian apt

我是 Linux 的新手,并尝试在我的 Raspberry 上安装最新的 R 版本。
我的 Raspberry 在 Wheezy 7.8 上运行。

我按照说明操作 on CRAN , 所以我

  • 添加deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3//etc/apt/sources.list
  • apt-get update正如 CRAN 站点
  • 所指出的,这是成功的,并且只给了我一个公钥的“签名错误”。
  • apt-get install r-base

  • 但是最后一条命令的结果是
    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-base-core (>= 3.1.2-1~wheezycran3.0) but it is not going to be installed     
    Depends: r-recommended (= 3.1.2-1~wheezycran3.0) but it is not going to be installed     
    Recommends: r-base-html but it is not going to be installed     
    Recommends: r-doc-html but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    

    我之前尝试安装 R-2.15,然后运行上述命令。 R-2.15 可以成功安装,但我真的需要 R-3*。

    我确实浏览了网络,但找不到针对我的特定问题的任何有用提示,因此我感谢您能给我的任何支持。

    谢谢!

    如果它有任何用处:apt-cache policy r-base
    r-base:
      Installed: (none)
      Candidate: 3.1.2-1~wheezycran3.0
      Version table:
         3.1.2-1~wheezycran3.0 0
            500 http://cran.rstudio.com/bin/linux/debian/ wheezy-cran3/ Packages
         3.1.0-1~wheezycran3.0 0
            500 http://cran.rstudio.com/bin/linux/debian/ wheezy-cran3/ Packages
         2.15.1-4 0
            500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
    
    apt-cache policy r-base-core
    r-base-core:
      Installed: (none)
      Candidate: 2.15.1-4
      Version table:
         2.15.1-4 0
            500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
    
    uname -a
    Linux raspberrypi 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l GNU/Linux
    

    最佳答案

    我遇到了同样的情况,并决定从源代码安装它,而不是从存储库安装 R(apt-get 命令)。

    这是我在 Raspberry Pi 2 上运行的命令。
    我可以成功安装和运行 R(3.1.2)。
    这对您来说可能不是完整的答案,因为我可能已经安装了您以前没有的 gcc 之类的库。如果您遇到其他问题,请告诉我。我想解决它。

    正如关于这个主题的旁注,因为 sudo make install过程花了很长时间(可能一个多小时。我不确定,因为我在不知不觉中就睡着了......),我建议您在有足够的时间或像我一样 sleep 之前这样做。

    wget http://cran.rstudio.com/src/base/R-3/R-3.1.2.tar.gz
    mkdir R_HOME
    mv R-3.1.2.tar.gz R_HOME/
    cd R_HOME/
    tar zxvf R-3.1.2.tar.gz
    cd R-3.1.2/
    sudo apt-get install gfortran libreadline6-dev libx11-dev libxt-dev
    ./configure
    make
    sudo make install
    R
    

    关于r - 在 Wheezy 7.8 (Raspbian) 上安装 R 3.1.2 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28309891/

    相关文章:

    r - 自定义 SHAPforxgboost 图中的标签

    r - 创建一个由向量​​列表组成的新向量

    javascript - R Shiny : setExtremes in Highcharts (rCharts) on page load

    python - 如何使用MAVLink/MAVProxy检查无人机是否已布防?

    OpenCV 3.4 : OpenCL on RaspberryPi 4 GPU

    c - Raspberry PI,原始读取 C 中的寄存器值

    c - raspbian libc 函数名称上的 Gdb

    r - stat_smooth 和 geom_ribbon 之间的交互不良

    tensorflow - 在树莓派上安装 tensorflow 1.9* 通过修改代码以使用 tf 2 解决

    c++ - 树莓派 g++ : Ultrasonic sensor not working. ..!