“没有可用的R软件包”当我在centos 6上使用“ yum install R”时

时间:2019-05-24 07:54:09

标签: r centos6

我想用yum在Centos 6上安装R。但是我总是得到“没有可用的R软件包”。

以下是我的步骤:

首先,我要安装epel。

[root@host ~]# yum install epel-release
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.ca-west.mirror.fullhost.io 
* elrepo-kernel: repos.lax-noc.com 
* extras: centos.ca-west.mirror.fullhost.io 
* updates: centos.ca-west.mirror.fullhost.io
Package epel-release-6-8.noarch already installed and latest version
Nothing to do

然后我要安装R:

# yum install R
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.ca-west.mirror.fullhost.io
 * elrepo-kernel: repos.lax-noc.com
 * extras: centos.ca-west.mirror.fullhost.io
 * updates: centos.ca-west.mirror.fullhost.io
No package R available
Error: Nothing to do.

我也尝试使用:

yum clean all
yum update

清洁环境。但是会遇到同样的问题。

下面是重新抛光的信息。希望对您有所帮助。

# sudo yum repolist all
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ca-west.mirror.fullhost.io
 * elrepo-kernel: repos.lax-noc.com
 * extras: centos.ca-west.mirror.fullhost.io
 * updates: centos.ca-west.mirror.fullhost.io

repo id                repo name                                status
C6.0-base              CentOS-6.0 - Base                        disabled
C6.0-centosplus        CentOS-6.0 - CentOSPlus                  disabled
C6.0-contrib           CentOS-6.0 - Contrib                     disabled
C6.0-extras            CentOS-6.0 - Extras                      disabled
C6.0-updates           CentOS-6.0 - Updates                     disabled
C6.1-base              CentOS-6.1 - Base                        disabled
C6.1-centosplus        CentOS-6.1 - CentOSPlus                  disabled
C6.1-contrib           CentOS-6.1 - Contrib                     disabled
C6.1-extras            CentOS-6.1 - Extras                      disabled
C6.1-updates           CentOS-6.1 - Updates                     disabled
C6.2-base              CentOS-6.2 - Base                        disabled
C6.2-centosplus        CentOS-6.2 - CentOSPlus                  disabled
C6.2-contrib           CentOS-6.2 - Contrib                     disabled
C6.2-extras            CentOS-6.2 - Extras                      disabled\
C6.2-updates           CentOS-6.2 - Updates                     disabled
C6.3-base              CentOS-6.3 - Base                        disabled\
C6.3-centosplus        CentOS-6.3 - CentOSPlus                  disabled
C6.3-contrib           CentOS-6.3 - Contrib                     disabled
C6.3-extras            CentOS-6.3 - Extras                      disabled
C6.3-updates           CentOS-6.3 - Updates                     disabled
C6.4-base              CentOS-6.4 - Base                        disabled
C6.4-centosplus        CentOS-6.4 - CentOSPlus                  disabled
C6.4-contrib           CentOS-6.4 - Contrib                     disabled
C6.4-extras            CentOS-6.4 - Extras                      disabled
C6.4-updates           CentOS-6.4 - Updates                     disabled
C6.5-base              CentOS-6.5 - Base                        disabled
C6.5-centosplus        CentOS-6.5 - CentOSPlus                  disabled
C6.5-contrib           CentOS-6.5 - Contrib                     disabled
C6.5-extras            CentOS-6.5 - Extras                      disabled
C6.5-updates           CentOS-6.5 - Updates                     disabled
C6.6-base              CentOS-6.6 - Base                        disabled
C6.6-centosplus        CentOS-6.6 - CentOSPlus                  disabled
C6.6-contrib           CentOS-6.6 - Contrib                     disabled
C6.6-extras            CentOS-6.6 - Extras                      disabled
C6.6-updates           CentOS-6.6 - Updates                     disabled
C6.7-base              CentOS-6.7 - Base                        disabled
C6.7-centosplus        CentOS-6.7 - CentOSPlus                  disabled
C6.7-contrib           CentOS-6.7 - Contrib                     disabled
C6.7-extras            CentOS-6.7 - Extras                      disabled
C6.7-updates           CentOS-6.7 - Updates                     disabled
C6.8-base              CentOS-6.8 - Base                        disabled
C6.8-centosplus        CentOS-6.8 - CentOSPlus                  disabled
C6.8-contrib           CentOS-6.8 - Contrib                     disabled
C6.8-extras            CentOS-6.8 - Extras                      disabled
C6.8-updates           CentOS-6.8 - Updates                     disabled
C6.9-base              CentOS-6.9 - Base                        disabled
C6.9-centosplus        CentOS-6.9 - CentOSPlus                  disabled
C6.9-contrib           CentOS-6.9 - Contrib                     disabled
C6.9-extras            CentOS-6.9 - Extras                      disabled
C6.9-updates           CentOS-6.9 - Updates                     disabled
base                   CentOS-6 - Base                          enabled: 6,712+1
base-debuginfo         CentOS-6 - Debuginfo                     disabled
c6-media               CentOS-6 - Media                         disabled
centosplus             CentOS-6 - Plus                          disabled
contrib                CentOS-6 - Contrib                       disabled
elrepo                 ELRepo.org Community Enterprise Linux Re disabled
elrepo-extras          ELRepo.org Community Enterprise Linux Ex disabled
elrepo-kernel          ELRepo.org Community Enterprise Linux Ke enabled:      13
elrepo-testing         ELRepo.org Community Enterprise Linux Te disabled
epel                   Extra Packages for Enterprise Linux 6 -  disabled
epel-debuginfo         Extra Packages for Enterprise Linux 6 -  disabled
epel-source            Extra Packages for Enterprise Linux 6 -  disabled
epel-testing           Extra Packages for Enterprise Linux 6 -  disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 6 -  disabled
epel-testing-source    Extra Packages for Enterprise Linux 6 -  disabled
extras                 CentOS-6 - Extras                        enabled:      46
fasttrack              CentOS-6 - fasttrack                     disabled
updates                CentOS-6 - Updates                       enabled:   455+8

repolist: 7,226
Exit code: 0

,我可以使用“ yum install gcc”,并且效果很好。

1 个答案:

答案 0 :(得分:0)

尝试运行以下内容:

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

然后运行以下命令:

sudo yum install R

希望有帮助