
Es liegt ein Fehler mit dem Befehl vor yum
. Ich glaube, es ist ein schwieriges Problem, für das ich mehrere Tage lang keine Lösung gefunden habe. Ich habe mich schließlich dazu entschlossen, Python und Yum neu zu installieren. Python habe ich bisher erfolgreich installiert, aber Yum konnte ich leider nicht installieren.
Zuerst habe ich Python und Yum aus dem auf CentOS6.5 basierenden System gelöscht
# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps
# whereis python |xargs rm -frv
# whereis python
# rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps
# whereis yum |xargs rm -frv
Dann habe ich diese Dateien heruntergeladen:
-rw-r--r-- 1 root root 77968 Aug 19 2016 python-2.6.6-66.el6_8.x86_64.rpm
-rw-r--r-- 1 root root 176932 Aug 19 2016 python-devel-2.6.6-66.el6_8.x86_64.rpm
-rw-r--r-- 1 root root 37052 Jul 3 2011 python-iniparse-0.3.1-2.1.el6.noarch.rpm
-rw-r--r-- 1 root root 5589812 Aug 19 2016 python-libs-2.6.6-66.el6_8.x86_64.rpm
-rw-r--r-- 1 root root 78448 May 12 2016 python-pycurl-7.19.0-9.el6.x86_64.rpm
-rw-r--r-- 1 root root 343724 Jul 3 2011 python-setuptools-0.6.10-3.el6.noarch.rpm
-rw-r--r-- 1 root root 87660 May 12 2016 python-urlgrabber-3.9.1-11.el6.noarch.rpm
# System need rpm-python
-rw-r--r-- 1 root root 61520 May 12 2016 rpm-python-4.8.0-55.el6.x86_64.rpm
-rw-r--r-- 1 root root 1042364 Mar 23 23:04 yum-3.2.29-81.el6.centos.noarch.rpm
-rw-r--r-- 1 root root 27224 Sep 26 2011 yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
-rw-r--r-- 1 root root 30484 Mar 23 22:59 yum-plugin-aliases-1.1.30-40.el6.noarch.rpm
-rw-r--r-- 1 root root 33524 Mar 23 23:00 yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
-rw-r--r-- 1 root root 26284 Mar 23 22:59 yum-plugin-protectbase-1.1.30-40.el6.noarch.rpm
-rw-r--r-- 1 root root 115416 Mar 23 23:00 yum-utils-1.1.30-40.el6.noarch.rpm
Ich habe rpm -Uvh --replacepkgs python*.rpm
Python erfolgreich neu installiert.
Preparing... ########################################### [100%]
1:python-libs ########################################### [ 14%]
2:python ########################################### [ 29%]
3:python-pycurl ########################################### [ 43%]
4:python-urlgrabber ########################################### [ 57%]
5:python-devel ########################################### [ 71%]
6:python-iniparse ########################################### [ 86%]
7:python-setuptools ########################################### [100%]
Im letzten Schritt habe ich es ausgeführt, rpm -Uvh --replacepkgs rpm-python*.rpm yum*.rpm
aber es ist fehlgeschlagen. Unten ist die Fehlermeldung:
error: Failed dependencies:
rpm = 4.8.0-55.el6 is needed by rpm-python-4.8.0-55.el6.x86_64
libxml2-python is needed by yum-utils-1.1.30-40.el6.noarch
# rpm --version
RPM version 4.8.0
Ich kann nichts darüber finden rpm = 4.8.0-55.el6
, was zum Teufel ist das? Ich hoffe auf Ihre Hilfe, danke im Voraus!
Antwort1
Das bedeutet, dass das rpm-python
Paket nach einer ganz bestimmten Version von sucht rpm
, d. h.rpm-4.8.0-55.el6