Re: yum broken ... HELP ....

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

 



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

>Hi
>when i run yum i get the following
>
>[root@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@xxxxxxxxxxxxxxxxx>
      '      is no more.             <http://www.georgeanelson.com/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux