Koozali.org: home of the SME Server

Yum problems

Offline jahlewis

  • *
  • 151
  • +0/-0
    • http://www.arachnerd.com/
Yum problems
« on: October 12, 2005, 03:43:42 PM »
I've got rpm-python-4.0.4-7x.18.i386.rpm and yum-1.0.3-7sme03.noarch.rpm installed on my SME6.0.1 server.

When I run yum, I get the following error:
Code: [Select]
Traceback (most recent call last):
  File "/usr/bin/yum", line 22, in ?
    import yummain
ImportError: Bad magic number in /usr/share/yum/yummain.pyc


Googling the above reveals this is a python version issue?  But if I do:
Code: [Select]
# rpm -q python
python-1.5.2-43.73


Any thoughts?  I'd love to get yum running to apply the updates, and help test some of the new ones.
............

firstbishop

Yum problems
« Reply #1 on: December 07, 2005, 08:13:17 AM »
I had this problem too and in my case the solution was as follows:

I had previously edited the symlink /usr/bin/python to point it to python2 (for another package that needed python2). Changing the symlink back to point to python1.5 sorted the problem.

Offline jahlewis

  • *
  • 151
  • +0/-0
    • http://www.arachnerd.com/
Yum problems
« Reply #2 on: January 11, 2006, 12:02:09 PM »
That was the problem!  Much obliged!

cd /usr/bin
rm python
ln -s python1.5 python

Yum now works!!!!

Now to get to solving the following:

[root@gluon bin]# yum update
Gathering package information from servers
Getting headers from: SME Server 6.x base updates
Getting headers from: SME Server 6.0.1 os
Getting headers from: SME Server 6.0.1 updates
Finding updated packages
Downloading needed headers
Resolving dependencies
....identical dependency loop exceeded
package glibc needs glibc-common = 2.2.5-44 (not provided)
package glibc needs glibc-common = 2.2.5-44 (not provided)
............

Offline Stiven

  • ***
  • 53
  • +0/-0
Yum problems
« Reply #3 on: February 12, 2006, 07:27:52 PM »
Hi everybody,

I have the same problem than you with the same error message.

However, my python version is 2.2.1-17.

1 - How can I solve the problem in this case ?

2 - Does the removing of python and building of a new link not trouble another package running with python2.2 ?

Thanx a lot for your help.

Bye.