[Tutor] Python 3.2 Install Not Responding To Python Command!!

Walter Prins wprins at gmail.com
Sun Apr 10 22:33:19 CEST 2011


On 9 April 2011 19:45, Nevins Duret <duretn at bellsouth.net> wrote:

> I can't thank you enough for your help.  Yes, I usually use the Synaptic
> Package Manager, however in this case, Python version 3.2 is not on the
> Synaptic package Manager.  This is why I chose to build it from source.  As
> far as what I think is causing this when I go in the
>

No problem.


> Terminal and type:
> sudo update-alternatives --install /usr/bin/python/python3.2 python
> /opt/py32/bin/python3.2 1
>
> I get this as an error message:
>
> update-alternatives: renaming python link from /usr/bin/python to
> /usr/bin/python/python3.2.
> update-alternatives: warning: forcing reinstallation of alternative
> /opt/py32/bin because link group python is broken.
> update-alternatives: error: unable to make
> /usr/bin/python/python3.2.dpkg-tmp a symlink to /etc/alternatives/python: No
> such file or directory
>

I would expect that "update-alternatives" would have trouble (on the first
line) because /usr/bin/python is not a link anymore (but instead a folder)
based on your previous posts.

So, please go and inspect the /usr/bin/python folder and see what if
anything's inside.  If it's not empty you need to see what is in fact in it
and hopefully get rid of it or move it out of the way. Once it's empty, then
just delete the /usr/bin/python folder (you'll have to be root or use
"sudo") and afterwards either recreate a link to the default python
interpreter and/or try the update-alternatives command again. (To manually
restore the default python link, first execute "which python2.6" which
should output "/usr/bin/python2.6", then execute "sudo ln -s
/usr/bin/python2.6 /usr/bin/python" which should restore the link to the
default python.  After doing this "update-alternatives" should have less
trouble redirecting the /usr/bin/python link.

I however want to reiterate that your problems, especially fixing your OS,
will be better dealt with on the Ubuntu community forums.

Rohan, thanks for posting about that PPA, wasn't aware of it!

Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110410/c900a22b/attachment.html>


More information about the Tutor mailing list