redhat6.5 yumソースのインストール

4962 ワード

redhat6.5 yumソースをインストールします.私はこの文章に従ってインストールしたのです.https://www.cnblogs.com/zwgblog/p/5840486.html.インストール中にエラーが発生しました:一、
[root@xxzx tmp]# rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm
warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
	file /usr/lib/python2.6/site-packages/urlgrabber/grabber.py from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch
	file /usr/lib/python2.6/site-packages/urlgrabber/grabber.pyc from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch
	file /usr/lib/python2.6/site-packages/urlgrabber/grabber.pyo from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch
	file /usr/lib/python2.6/site-packages/urlgrabber/progress.pyc from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch
	file /usr/lib/python2.6/site-packages/urlgrabber/progress.pyo from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el6.noarch


「file/usr/lib/python 2.6/site-packages/urlgrabber/grabber.py from install of python-urlgrabber-3.9.1-11.el 6.noarch conflicts with file from package python-urlgrabber-3.9.1-9.el 6.noarch」のエラーは、履歴バージョンと競合していることがわかります.解決策:以下のコマンドを実行し、強制的にインストールします.
[root@xxzx tmp]# rpm -ivh --force  python-urlgrabber-3.9.1-11.el6.noarch.rpm

実行結果は次のとおりです.
warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:python-urlgrabber      ########################################### [100%]
[root@xxzx tmp]# rpm -ivh yum-3.2.29-81.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm
warning: yum-3.2.29-81.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:yum-plugin-fastestmirro########################################### [ 50%]
   2:yum                    warning: /etc/yum.conf created as /etc/yum.conf.rpmnew
########################################### [100%]

インストールに成功したことを示します.二、yum makecache時報の実行ミス
yum makecache
http://mirrors.163.com/centos/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
      。
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

  :Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

/etc/*.repoプロファイルのbaseurlが間違っています.baseurl=http://mirrors.163.com/centos/6/os/$basearch/のはずです.baseurl=http://mirrors.163.com/centos/6.5/os/$basearch/と書きました.修正後、次のように正しく実行されます.
[root@xxzx yum.repos.d]# yum makecache
base                                                     | 3.7 kB     00:00     
base/group_gz                                            | 242 kB     00:00     
base/filelists_db                                        | 6.4 MB     00:00     
base/primary_db                                          | 4.7 MB     00:00     
base/other_db                                            | 2.8 MB     00:00     
extras                                                   | 3.4 kB     00:00     
extras/filelists_db                                      |  24 kB     00:00     
extras/prestodelta                                       | 1.1 kB     00:00     
extras/primary_db                                        |  27 kB     00:00     
extras/other_db                                          |  28 kB     00:00     
rhel-media                                               | 3.9 kB     00:00 ... 
rhel-media/group_gz                                      | 204 kB     00:00 ... 
rhel-media/filelists_db                                  | 3.8 MB     00:00 ... 
rhel-media/primary_db                                    | 3.1 MB     00:00 ... 
rhel-media/other_db                                      | 1.6 MB     00:00 ... 
updates                                                  | 3.4 kB     00:00     
updates/filelists_db                                     | 1.7 MB     00:00     
updates/prestodelta                                      |  79 kB     00:00     
updates/primary_db                                       | 2.4 MB     00:00     
updates/other_db                                         |  33 MB     00:00