linux,No package epel-release available.

[root@sht-sgmhadoopdn-01 ~]#  yum install epel-release  
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * epel: ftp.cuhk.edu.hk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================================================================================
 Package                                                       Arch                                                    Version                                               Repository                                             Size
=========================================================================================================================================================================================================================================
Installing:
 epel-release                                                  noarch                                                  6-8                                                   epel                                                   14 k

Transaction Summary
=========================================================================================================================================================================================================================================
Install       1 Package(s)

Total size: 14 k
Installed size: 22 k
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6


GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[root@sht-sgmhadoopdn-01 ~]#


[root@sht-sgmhadoopnn-02 ~]#  yum install epel-release  
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package epel-release available.
Error: Nothing to do
[root@sht-sgmhadoopnn-02 ~]# cd /etc/yum.repos.d
[root@sht-sgmhadoopnn-02 yum.repos.d]# rm -f /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel-testing.repo
[root@sht-sgmhadoopnn-02 yum.repos.d]# yum install epel-release
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package epel-release available.
Error: Nothing to do


[root@sht-sgmhadoopnn-02 yum.repos.d]# cd
[root@sht-sgmhadoopnn-02 ~]# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
--2016-07-20 19:32:56--  http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Resolving download.fedoraproject.org... 140.211.169.206, 209.132.181.16, 140.211.169.196, ...
Connecting to download.fedoraproject.org|140.211.169.206|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://ftp.cuhk.edu.hk/pub/linux/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm [following]
--2016-07-20 19:32:58--  http://ftp.cuhk.edu.hk/pub/linux/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
Resolving ftp.cuhk.edu.hk... 137.189.4.14, 2405:3000:3:4::e
Connecting to ftp.cuhk.edu.hk|137.189.4.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14540 (14K) [application/octet-stream]
Saving to: “epel-release-6-8.noarch.rpm”

100%[===============================================================================================================================================================================================>] 14,540      --.-K/s   in 0.06s  

2016-07-20 19:32:58 (229 KB/s) - “epel-release-6-8.noarch.rpm” saved [14540/14540]

[root@sht-sgmhadoopnn-02 ~]# rpm -ivh epel-release-6-8.noarch.rpm

 
http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30089851/viewspace-2126304/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/30089851/viewspace-2126304/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值