yum broken ... HELP ....

Gregory Machin gregory.machin at gmail.com
Wed Oct 4 15:34:08 UTC 2006


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 at georgeanelson.com> wrote:
>
> 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/>
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>



-- 
Gregory Machin
gregory.machin at gmail.com
www.linuxpro.co.za
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20061004/1ab1e2c9/attachment-0001.htm>


More information about the fedora-list mailing list