This system is not registered with RHN
来源:互联网 发布:重庆海普软件 编辑:程序博客网 时间:2024/06/09 15:43
root@localhost ipvsadm-1.25]# yum install gcc
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
No package gcc available.
Nothing to do
[root@localhost ipvsadm-1.25]#
红帽中出现"This system is not registered with RHN"这个的原因是因为红帽中没有注册RHN。
解决办法:(假定你已安装yum,且网络畅通)更改yum的源,
即更换/etc/yum.repos.d/rhel-debuginfo.repo 这个文件。首先备份,如下所示:
[root@localhost yum.repos.d]# ls /etc/yum.repos.d/
rhel-debuginfo.repo.bak
进入/etc/yum.repos.d/目录,终端中输入
wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
再看目下有什么文件:
[root@localhost yum.repos.d]# ls /etc/yum.repos.d/
CentOS-Base.repo rhel-debuginfo.repo.bak
即可在此目录下得到CentOS-Base.repo文件,这是centos的源文件,然后测试看看yum是否可以使用了,
如果还是不可以的话,只需将其重命名为rhel-debuginfo.repo即可。
- 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
- 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
- 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
- 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
- This system is not registered with RHN
- this system is not registered with rhn
- ubuntu nodejs
- Java中用内存映射处理大文件
- MYSQL的分区字段,必须包含在主键字段内
- JetBrains优秀工具推荐
- QPS、PV和需要部署机器数量计算公式(转)
- This system is not registered with RHN
- MYSQL自动备份策略的选择
- C语言字节对齐 内存管理
- 【J2EE性能分析篇】JVM参数对J2EE性能优化的影响
- JProfiler 使用说明
- Maven 安装Jar包到本地仓库
- [leetcode] Unique Paths II
- MySQL集群的可行方案
- 分布式网站架构后续:zookeeper技术浅析