yum install 在红帽中提示”This system is not registered with RHN”的解决方案
来源:互联网 发布:java接口和抽象类区别 编辑:程序博客网 时间:2024/04/30 08:24
第一步:卸载rhel的默认安装的yum包
查看yum包
rpm -qa|grep yum
卸载之
rpm -qa|grep yum|xargs rpm -e --nodeps
第二步:下载新的yum包
打开网页 http://mirrors.ustc.edu.cn/centos/5/os/i386/CentOS/
找到下列rpm包,下载并安装
yum-3.2.22-26.el5.centos.noarch.rpm
yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
并且安装之
rpm -ivh yum-*
注意:yum和yum-fastestmirror相互依赖,所以同时安装即可。
第三步:下载yum的配置源
wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
下载到 /etc/yum.repos.d/ 目录下面
第四步:运行yum makecache生成缓存
[root@localhost yum.repos.d]# yum makecache
There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.2 (default, Mar 11 2012, 03:08:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
我在做第四步的时候出现上面的错误,原因是我升级了python, 解决方法如下
[root@localhost yum.repos.d]# whereis python
python: /usr/bin/python /usr/bin/python2.4 /usr/lib/python1.5 /usr/lib/python2.4 /usr/local/bin/python2.7 /usr/local/bin/python2.7-config /usr/local/bin/python /usr/local/lib/python2.7 /usr/include/python2.4 /usr/share/man/man1/python.1.gz
[root@localhost yum.repos.d]# vi /usr/bin/yum
#!/usr/bin/python
import sys
把第一行修改为 #!/usr/bin/python2.4, 然后保存退出。
[root@localhost yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
addons | 1.9 kB 00:00
addons/filelists_db | 564 B 00:00
addons/other_db | 552 B 00:00
addons/primary_db | 1.1 kB 00:00
base | 1.1 kB 00:00
base/filelists | 3.0 MB 00:01
这样就成功了。
- yum install 在红帽中提示”This system is not registered with RHN”的解决方案
- yum install mysql提示“This system is not registered with RHN”
- redhat ”This system is not registered with RHN”的解决方案
- RedHat的yum配置 以及 提示“This system is not registered with RHN” 的解决
- Centos 下使用 yum 提示 This system is not registered with RHN 的解决办法
- yum提示This system is not registered with RHN.RHN support will be disabled.(转)
- 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
- 红帽中出现”This system is not registered with RHN”的解决方案
- 红帽中出现”This system is not registered with RHN”的解决方案
- 使用yum提示This system is not registered with ULN / RHN(转)
- This system is not registered with RHN
- This system is not registered with RHN
- This system is not registered with RHN
- This system is not registered with RHN
- 网络编程之基于TCP 的Sockets编程
- 调试打印技巧
- 托盘程序的编写过程
- ORACLE 表空间扩展方法
- 2012七种最最为流行的婚纱摄影的风格
- yum install 在红帽中提示”This system is not registered with RHN”的解决方案
- Android测试(1)-普通类的测试
- C#连接oracle实现增删改查
- Oracle 绑定变量
- 禁用IE和火狐的缓存问题
- sql 字符串变为查询ID号
- 剖析MFC六大关键技术 四 永久保存(串行化)
- BCB 静态编译
- eclipse RCP开发 table相关的操作