yum broken ... HELP ....

Tony Nelson tonynelson at georgeanelson.com
Wed Oct 4 15:18:43 UTC 2006


At 8:45 AM +0200 10/4/06, Gregory Machin wrote:

>Hi
>when i run yum i get the following
>
>[root at fwlw-dsl ~]# yum update
>import: unable to open X server `'.
>/usr/bin/yum: line 3: try:: command not found
>import: unable to open X server `'.
>/usr/bin/yum: line 5: except: command not found
>/usr/bin/yum: line 23: syntax error near unexpected token `('
>/usr/bin/yum: line 23: `""" % (sys.exc_value, sys.version)'
>
>I have reinstalled yum and it's the same ....
>what do i try next ...

I don't know.  For some reason, yum is being run as a bash script rather
than a python script.  The file /usr/bin/yum should have a first line that
refers to python:

    #!/usr/bin/python

Typing "python" at the command line should run python (press Ctl-d to get
back out).
-- 
____________________________________________________________________
TonyN.:'    The Great Writ     <mailto:tonynelson at georgeanelson.com>
      '      is no more.             <http://www.georgeanelson.com/>




More information about the users mailing list