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

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



if I try and exicute python from the comand line I get the following ....

-bash: /usr/bin/python: cannot execute binary file


On 10/4/06, Tony Nelson <tonynelson georgeanelson com> wrote:
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 georgeanelson com>
      '      is no more.             <http://www.georgeanelson.com/ >

--
fedora-list mailing list
fedora-list redhat com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



--
Gregory Machin
gregory machin gmail com
www.linuxpro.co.za
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]