linux,No package epel-release available.

简介: [root@sht-sgmhadoopdn-01 ~]#  yum install epel-release   Loaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfile * epel: ftp.

[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/

目录
相关文章
|
弹性计算 Linux 网络安全
Disconnected: No supported authentication methods available)FileZilla通过SSH连接Linux服务器( CentOS)
Disconnected: No supported authentication methods available)FileZilla通过SSH连接Linux服务器( CentOS)
635 0
Disconnected: No supported authentication methods available)FileZilla通过SSH连接Linux服务器( CentOS)
|
Linux
Why Swap is being Consumed when Physical Memory is Available in DBaaS System or in any Linux System
Why Swap is being Consumed when Physical Memory is Available in DBaaS System or in any Linux System
105 0
|
Linux
Red Hat Enterprise Linux Now Globally Available on Alibaba Cloud
As a Red Hat Certified Cloud and Service Provider, Alibaba Cloud now offers Red Hat Enterprise Linux in its Marketplace
1764 0
Red Hat Enterprise Linux Now Globally Available on Alibaba Cloud
|
Shell Linux Apache
Linux账号不能切换(This account is currently not available.)
比如我是 su apache的时候出现的问题 用vi看看 apache的帐号信息 cat /etc/passwd | grep apache 发现它的shell是“/sbin /nologin”,需要将起改成“/bin/bash” vipw /etc/...
1728 0
|
17天前
|
运维 安全 Linux
Linux中传输文件文件夹的10个scp命令
【10月更文挑战第18天】本文详细介绍了10种利用scp命令在Linux系统中进行文件传输的方法,涵盖基础文件传输、使用密钥认证、复制整个目录、从远程主机复制文件、同时传输多个文件和目录、保持文件权限、跨多台远程主机传输、指定端口及显示传输进度等场景,旨在帮助用户在不同情况下高效安全地完成文件传输任务。
120 5
|
16天前
|
Linux
Linux系统之expr命令的基本使用
【10月更文挑战第18天】Linux系统之expr命令的基本使用
51 4
|
3天前
|
缓存 监控 Linux
|
7天前
|
Linux Shell 数据安全/隐私保护
|
8天前
|
域名解析 网络协议 安全