redhat5没注册,yum安装问题
redhat5没注册,自带源不管用改为别的,可一安装软件就失败
Total size: 2.5 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
GPG key retrieval failed: [Errno 14] HTTP Error 404: Not Found
我配置的原过程为
1. 安装yum
2. 修改.repo文件
ccd /etc/yum.repos.d/
#vi CentOS-Base.repo
写入以下内容:
[base]
name=CentOS-5 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras
baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
# vi dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=1
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
3. 导入key
#rpm --import http://ftp.sjtu.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
在网上看有很多人有同样问题,不过都没解答,知道人指教,谢谢
...全文
相关推荐
解决Redhat Linux6 yum字符界面出现未注册的方案
解决Redhat Linux6 yum字符界面出现未注册的方案
RedHat yum源配置
RedHat yum源配置原本以为Redhat7 和Centos7是完全一样的,可是安装完Redhat7以后,使用yum安装软件,提示红帽操作系统未注册。在网上搜索教程,最后成功解决,解决方式是将yum源更改为网易的镜像库。 以下为解决方法: 1.首先卸载原来的yum源 参考网上教程,执行:rpm -qa|grep yum|xargs rpm -e --nodeps...
redhat7.5上安装gcc编译器
1、背景 在redhat7.5上安装python3,执行命令./configure时,出现如下报错:configure: error: no acceptable C compiler found in $PATH 这个报错,说明没有安装合适的编译器gcc,这时就需要安装或者升级gcc及其它依赖包 2、使用yum命令直接联网安装gcc yum install gcc -y 执行命令后,报...
RedHat未注册yum不能用解决办法
RedHat未注册yum不能用解决办法; 卸载redhat自带的yum组件 rpm -qa|grep yum|xargs rpm -e --nodeps 安装centos的yum包
RedHat Linux RHEL6配置本地YUM源
RedHat Linux RHEL6配置本地YUM源


其他技术讨论专区
