Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

RedHat yum 提示 Unable to read consumer identity?改用 CentOS 鏡像源免註冊安裝軟體

編輯:關於 Linux

RedHat 未註冊訂閱時 yum 會報 Unable to read consumer identity,因官方源需 consumer ID 驗證。解法:備份 /etc/yum.repos.d/rhel-source.repo,新建指向網易 (163) CentOS 6.3 鏡像源的 .repo 檔 (base, updates, extras, centosplus),yum update 即可正常安裝。CentOS 由 RHEL 原始碼重編譯,二進制相容性極高,免費無需註冊。無需移除原 yum,直接切換源即可。

CentOS 163 鏡像源配置 (rhel-source.repo)

[base]
name=CentOS-$releasever - Base
baseurl=https://mirrors.163.com/centos/6.3/os/$basearch/
gpgcheck=1
gpgkey=https://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

[updates]
name=CentOS-$releasever - Updates
baseurl=https://mirrors.163.com/centos/6.3/updates/$basearch/
gpgcheck=1
gpgkey=https://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

[extras]
name=CentOS-$releasever - Extras
baseurl=https://mirrors.163.com/centos/6.3/extras/$basearch/
gpgcheck=1
gpgkey=https://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://mirrors.163.com/centos/6.3/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

切換至國內 CentOS 鏡像源,不僅解決註冊問題,下載速度也大幅提升,是未訂閱 RedHat 使用者的最佳選擇。

Copyright © Windows教程網 All Rights Reserved