在ubuntu上安装特定版本的r-base(2.15.2) [英] Install particular version(2.15.2) of r-base on ubuntu

查看:168
本文介绍了在ubuntu上安装特定版本的r-base(2.15.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ubuntu和R的新手.

I am newbie to both Ubuntu and R.

我正在尝试在ubuntu上安装R 2.15.2.由于R的最新版本是3.0.X,因此我在/etc/apt/sources.list

I am trying to install R 2.15.2 on ubuntu. Since the latest version of R is 3.0.X, I specified the version in /etc/apt/sources.list

deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu 精确2.15.2

deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu precise 2.15.2

然后我跑了sudo apt-get install r-base.

它会安装,但是当我检查版本时,它是2.14.1,而不是2.15.2

It installs, but when I check version, it is 2.14.1, not 2.15.2

我试图在命令行中指定版本,例如:

I tried to specify version in command line, such as:

sudo apt-get install r-base_2.15.2_1precision1

总能看到:

E:无法找到软件包r-base_2.15.2_1precision1.
E:找不到正则表达式"r-base_2.15.2_1precision1"的任何程序包

E: Unable to locate package r-base_2.15.2_1precision1.
E: Couldn't find any package by regex 'r-base_2.15.2_1precision1'

有什么建议吗?谢谢.

如果我运行命令:

sudo apt-get install r-base=2.15.2-1precise0

请参阅以下消息:

以下程序包具有未满足的依赖项:
r-base:取决于:r推荐(= 2.15.2-1precise0),但要安装3.0.1-1precise0precise2
推荐:r-base-html,但是不会被安装

The following packages have unmet dependencies:
r-base : Depends: r-recommended (= 2.15.2-1precise0) but 3.0.1-1precise0precise2 is to be installed
Recommends: r-base-html but it is not going to be installed

推荐答案

查找解决方案.

我需要这样安装:

sudo apt-get install r-base-core=2.15.3-1precise0precise1
sudo apt-get install r-recommended=2.15.3-1precise0precise1
sudo apt-get install r-doc-html=2.15.3-1precise0precise1
sudo apt-get install r-base=2.15.3-1precise0precise1

这篇关于在ubuntu上安装特定版本的r-base(2.15.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆