Terminal doesn't open after installing Python 3.9

In your xterm, please run:

sudo update-alternatives --config python3

2 Likes

Ah finally. Thanks Aravisian!
I was hoping you could pitch in here.

It only shows python3.9

1 Like

sudo ln -sf /usr/bin/python3.9 /usr/bin/python3

The geniuses at Gnome symlinked the python version to gnome-terminal

I'm wobbbly... just woke up...

Ah, that what it was.
I really could not understand why Python broke the gnome-terminal. Now the whole thing started to make sense.

Now python is again configured with python3.9 which didn't work with the system apps.

It would break a lot of things. I remember when Trekker did this - and not long after, I did the same exact thing.

Is it possible to use the system apps with python3.9? If now I will reinstall linux.

Yes, you can.
In your xterm, can you now

cd /usr/bin

Then

sudo nano gnome-terminal

Right at the top, you will see

#!/usr/bin/python3

change to

#!/usr/bin/python3.9

save and exit... Then Log out and back in and please try ctrl+alt+t

It doesn't work.

My jaw physically dropped... That worked when it happened to me, even. And my mistakes are notoriously hard to fix.

When you did sudo update-alternatives --config python3 did you make any selection (Even if there was only one selection to make?

Yes. I made one. It did display two selections and both were python 3.9.6. Now if I run the command it gives an error which says the the linkgroup python3 is broken.

:expressionless:

3.9.6

Okay. I'll try.

It still doesn't work.
I think the best thing would be to reinstall linux.

Ok, one more thing to try:

sudo apt reinstall python3 python3-minimal python3.8 python3.8-minimal

once done:

It works again! And the main menu too! Everything seems to work now! Thank you!

I had to help.

Seeing a person so distressed over being unable to access the Terminal...

you are my hero :smiley:

So now pyhon3 is linked to python3.8 which is required and I can still use python 3.9 with the command "pyhton3.9". Great!

I'm really thankful!