解决This system is not registered with RHN

来源:互联网 发布:ios软件不支持 编辑:程序博客网 时间:2024/06/06 19:51
  1. 解决办法

    1. 1

      Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源就可以了。使用命令 cd /etc/yum.repos.d/   进入yum的配置目录。

    2. 2

      在终端中输入 wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 命令,下载CentOS- Base.repo文件。

      解决This system is not registered with RHN
    3. 3

      然后将原有的rhel-debuginfo.repo备份一下,使用命令mv CentOS-Base.repo rhel-debuginfo.repo,将CentOS- Base.repo重命名成rhel-debuginfo.repo。

    4. 4

      成功以后,使用yum install build-essential安装成功。

      解决This system is not registered with RHN
      END

0 0
原创粉丝点击