I broke yum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Guys/Gals,

I was wondering if someone could help me.

I was trying to install git on a redhat box, and I broke yum some how.  I’ve been trying to fix yum for many days to no avail, and I was wondering if you could give me some tips.

 

Here is basically what I am looking at

 

[root@n ~]# yum install git

There was a problem importing one of the Python modules

required to run yum. The error leading to this problem was:

 

   No module named yum

 

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.4 (#1, Nov  8 2007, 22:06:01)

[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)]

 

If you cannot solve this problem yourself, please go to

the yum faq at:

  http://wiki.linux.duke.edu/YumFaq

 

[root@n ~]# which python

/usr/bin/python

 

 [root@n ~]# ls /usr/bin/* | grep python

/usr/bin/python

/usr/bin/python2

/usr/bin/python2.4

 

[root@n ~]# python -V

Python 2.4.4

 

[root@n ~]# cat /etc/redhat-release

Red Hat Enterprise Linux ES release 4 (Nahant Update 4)

 

[root@n ~]# uname -a

Linux n.sites.net 2.6.18-028stab056 #1 SMP Mon Nov 2 13:19:07 UTC 2009 i686 i686 i386 GNU/Linux

 

I have tried to use rpm to re-install yum like this:

 

[root@n ~]# sudo rpm -Uvh http://dl.atrpms.net/all/yum-3.2.22-4.el4.noarch.rpm --replacefiles

Retrieving http://dl.atrpms.net/all/yum-3.2.22-4.el4.noarch.rpm

warning: only V3 signatures can be verified, skipping V4 signature

error: Failed dependencies:

        /usr/bin/python2.3 is needed by yum-3.2.22-4.el4.noarch

        pygpgme is needed by yum-3.2.22-4.el4.noarch

        python(abi) = 2.3 is needed by yum-3.2.22-4.el4.noarch

        python-iniparse is needed by yum-3.2.22-4.el4.noarch

        rpm >= 0:4.4.2 is needed by yum-3.2.22-4.el4.noarch

        yum-metadata-parser >= 1.1.0 is needed by yum-3.2.22-4.el4.noarch

 

I think perhaps yum is being installed to work with python 2.3 which I don’t even have (I have 3 separate versions for 2.4.4)

This also leads me to believe I have yum:

 

[root@n ~]# sudo find / -mount -name yum -type f -ls

3433201    4 -rwxr-xr-x   1 root     root         1036 Aug 28  2007 /etc/rc.d/init.d/yum

3433147    4 -rw-r--r--   1 root     root           89 Aug 28  2007 /etc/logrotate.d/yum

3557795    4 -rwxr-xr-x   1 root     root          779 Aug 28  2007 /usr/bin/yum

[root@n ~]# rpm -qa | grep yum

yum-2.4.3-0.5.el4


Any thoughts?
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux