redhat 7安裝CentOS 7 yum源

http://www.bubuko.com/infodetail-2004218.htmlphp

http://www.bubuko.com/infodetail-2004218.htmlhtml

 ****************************************node

1報錯信息:    參考:https://www.centos.org/forums/viewtopic.php?t=36563python

[root@LinuxS04 site-packages]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named urlgrabber

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.5 (default, Feb 11 2014, 07:46:25)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-13)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq
  解決辦法:
[root@LinuxS04 site-packages]# rpm -qa | grep urlgrabber
python-urlgrabber-3.10-4.el7.noarch
[root@LinuxS04 site-packages]# rpm -qa python-urlgrabber-3.10-4.el7.noarch
[root@LinuxS04 site-packages]# rpm -e --nodeps  python-urlgrabber-3.10-4.el7.noarch
而後安裝:
[root@LinuxS04 yum.repos.d]# rpm -ivh python-urlgrabber-3.10-8.el7.noarch.rpm
警告:python-urlgrabber-3.10-8.el7.noarch.rpm: 頭V3 RSA/SHA256 Signature, 密鑰 ID f4a80eb5: NOKEY
準備中...                          ################################# [100%]
正在升級/安裝...
   1:python-urlgrabber-3.10-8.el7     ################################# [100%]
再運行yum便可,沒有報錯了。!!!!

數據庫

 *********************************************************************************************************************************************centos

2,紅帽7安裝圖形桌面報錯ide

yum groupinstall "GNOME Desktop"ui

報錯信息      :this

錯誤:unbound-libs conflicts with redhat-release-server-7.0-1.el7.x86_64
錯誤:initscripts conflicts with redhat-release-server-7.0-1.el7.x86_64
您能夠嘗試添加 --skip-broken 選項來解決該問題
** 發現 1 個已存在的 RPM 數據庫問題, 'yum check' 輸出以下:
rhn-check-2.0.2-21.el7.noarch 有缺乏的需求 yum-rhn-plugin >= ('0', '1.6.4', '1')url

後經搜索:https://access.redhat.com/solutions/3423391

 必須參加紅帽訂閱才能夠安裝

*********************************************************************************************************************************************

https://www.cnblogs.com/haoyufeng/p/4393005.html    本身測過了,能夠使用的。

一、[root@localhost ~]# rpm -qa|grep yum|xargs rpm -e --nodeps(不檢查依賴,直接刪除rpm包)

二、下載新的yum包

在如下下載地址爲 一個個搜 ...........

http://rpm.pbone.net/

三、  下載地址都不能用了

[root@localhost ~]# wget http://mirrors.163.com/centos/7.1.1503/os/x86_64/Packages/yum-3.4.3-125.el7.centos.noarch.rpm

[root@localhost ~]# wget http://mirrors.163.com/centos/7.1.1503/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm

[root@localhost ~]# wget http://mirrors.163.com/centos/7.1.1503/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-29.el7.noarch.rpm

[root@localhost ~]# wget http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

四、安裝這些包

[root@localhost ~]# rpm -ivh yum-*

五、配置repo文件     配置阿里源  https://blog.csdn.net/CChenheng/article/details/79863888

[base]name=CentOS-$7 - Base - aliyun.com#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=osbaseurl=https://mirrors.aliyun.com/centos/7/os/$basearch/gpgcheck=1gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 #released updates[updates]name=CentOS-$7 - Updates - aliyun.com#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=updatesbaseurl=https://mirrors.aliyun.com/centos/7/updates/$basearch/gpgcheck=1gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful[extras]name=CentOS-$7 - Extras - aliyun.com#mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=extrasbaseurl=https://mirrors.aliyun.com/centos/7/extras/$basearch/gpgcheck=1gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages[centosplus]name=CentOS-$7 - Plus - aliyun.combaseurl=https://mirrors.aliyun.com/centos/7/centosplus/$basearch/gpgcheck=1enabled=0 gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

相關文章
相關標籤/搜索