RHEL6 64bit下更改YUM配置。yum this system is not registered with rhn的解决办法
来源:互联网 发布:高德导航车载端口修改 编辑:程序博客网 时间:2024/06/03 12:16
卸载THEL6自导的YUM包
rpm -qa | grep yum | xargs rpm -e --nodeps
下载CentOS的YUM
wget http://centos.ustc.edu.cn/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
wget http://centos.ustc.edu.cn/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://centos.ustc.edu.cn/centos/6/os/x86_64/Packages/yum-3.2.29-40.el6.centos.noarch.rpm
安装
rpm -ivh *.rpm
删除包
rm -rf *.rpm
更改yum源配置
cd /etc/yum.repos.d/
先备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup下面是修改RHEL的发行版本,否则YUM更新会报错
http://mirrors.163.com/centos/%24releasever/os/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 : http://mirrors.163.com/centos/%24releasever/os/i386/repodata/repomd.xml Trying other mirror.Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again下载Centos的release和indexhtml包,并重装。
rpm -e --nodeps redhat-release-server-6Server-6.0.0.37.el6.x86_64 redhat-indexhtml-6-1.el6.noarch
wget http://mirrors.163.com/centos/6/os/i386/Packages/centos-indexhtml-6-1.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/i386/Packages/centos-release-6-4.el6.centos.10.i686.rpm
rpm -ivh *.rpm
rm -rf *.rpm
rm -rf CentOS-*.repo
下载正确的YUM源配置文件
#wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
最后重新加载YUM
yum clean all
yum makecache
- RHEL6 64bit下更改YUM配置。yum this system is not registered with rhn的解决办法
- RHEL6 64bit下更改YUM配置。yum this system is not registered with rhn的解决办法
- Centos 下使用 yum 提示 This system is not registered with RHN 的解决办法
- RHEL下yum更新出现This system is not registered with RHN解决办法
- RedHat的yum配置 以及 提示“This system is not registered with RHN” 的解决
- yum报错"This system is not registered with RHN"
- yum 失败(This system is not registered with RHN)
- rehat yum 问题:This system is not registered with RHN
- yum报错"This system is not registered with RHN"
- yum安装出现This system is not registered with RHN
- 关于Linux下yum安装出现This system is not registered with RHN解决
- yum install 在红帽中提示”This system is not registered with RHN”的解决方案
- 解决Redhat Linux5 yum出现This system is not registered with RHN的方案
- 解决Redhat Linux5 yum出现This system is not registered with RHN的方案
- 解决Redhat Linux5 yum出现This system is not registered with RHN的方案
- 解决Redhat Linux5 yum出现This system is not registered with RHN的方案
- 解决Redhat yum出现This system is not registered with RHN的方案
- 解决Redhat yum出现This system is not registered with RHN的方案
- 用C模拟异常
- qt creator报错error while building deploying project
- Qt Qss使用
- 两个图形和矢量素材艺术品也可以巧妙地结合
- Cocos2D-x 用CCControlSwitch设置音乐的开关
- RHEL6 64bit下更改YUM配置。yum this system is not registered with rhn的解决办法
- cocos2d - CCSpriteBatchNode的使用
- Linq及Lamda表达式应用经验之 GroupBy 分组
- a link 标签的disabled属性实现disabled/enable
- 小窍门:如何让你的C++程序可以/禁止点击标题栏进行拖动
- mongodb 操作命令 及常见问题解决方法 (更新中...)
- MFC(进程间的通信,孙鑫C++第十七讲笔记整理)
- 超键,候选键,主键
- Learning C - Hello world! & function prototype