Hi,
I was updating my machine, and successfully ran "yum update"
now after this i installed the rpmforge repo following:
http://wiki.centos.org/AdditionalRes...ories/RPMForge
after that i ran "yum update" once more,a nd it found a few files.
Now after this when i tried yum i got the following error:
Code:
# 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 cElementTree
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.4.3 (#1, Jul 27 2009, 17:57:39)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
i couldnt figure out why, so i checked the latest rpm packages that were installed:
Code:
# rpm -qa --last
udftools-1.0.0b3-3.2.el4.rf Thu 17 Sep 2009 05:26:04 PM CEST
python-elementtree-1.2.6-7.el4.rf Thu 17 Sep 2009 05:26:04 PM CEST
mtr-0.73-1.el4.rf Thu 17 Sep 2009 05:26:04 PM CEST
dnsmasq-2.50-1.el4.rf Thu 17 Sep 2009 05:26:04 PM CEST
rsync-3.0.6-1.el4.rf Thu 17 Sep 2009 05:26:03 PM CEST
openssl097a-0.9.7a-9.el5_2.1 Thu 17 Sep 2009 05:26:03 PM CEST
nmap-5.00-1.el4.rf Thu 17 Sep 2009 05:26:03 PM CEST
lftp-3.7.15-1.el4.rf Thu 17 Sep 2009 05:26:03 PM CEST
compat-readline43-4.3-3 Thu 17 Sep 2009 05:26:03 PM CEST
gpg-pubkey-6b8d79e6-3f49313d Thu 17 Sep 2009 05:22:44 PM CEST
rpmforge-release-0.3.6-1.el4.rf Thu 17 Sep 2009 05:22:21 PM CEST
gpg-pubkey-e42d547b-3960bdf1 Thu 17 Sep 2009 05:22:21 PM CEST
gpg-pubkey-6b8d79e6-3f49313d
i uninstalled all of these via rpm -e . Yum still didnt work.
so i then removed yum from my system and deleted /var/cache/yum and /etc/yum.repos.d
now if i try to install: yum-1.0.3-0.1.rf.src.rpm
i get this
Code:
root@localhost home]# rpm -Uvh yum-1.0.3-0.1.rf.src.rpm
1:yum warning: user dag does not exist - using root
warning: group dag does not exist - using root
warning: user dag does not exist - using root 96%)
warning: group dag does not exist - using root
########################################### [100%]
[root@localhost home]# yum
-bash: /usr/bin/yum: No such file or directory
if i try to install: yum-1.0.3-0.1.rh7.rf.noarch.rpm
i get this:
Code:
[root@localhost home]# rpm -Uvh yum-1.0.3-0.1.rh7.rf.noarch.rpm
Preparing... ########################################### [100%]
1:yum ########################################### [100%]
[root@localhost home]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
ImportError: Bad magic number in /usr/share/yum/yummain.pyc
if i remvoe that and try to install: yum-3.2.19-18.el5.centos.noarch.rpm
i get:
Code:
[root@localhost home]# rpm -Uvh yum-3.2.19-18.el5.centos.noarch.rpm
error: Failed dependencies:
python-elementtree is needed by yum-3.2.19-18.el5.centos.noarch
yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch
yum-metadata-parser >= 1.1.0 is needed by yum-3.2.19-18.el5.centos.noarch
Any help would be greatly appreciated, thankyou