Terminal doesn't open after installing Python 3.9

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!

I am glad that you finally made it work.
Please tick the posting which solved your problem and :ballot_box_with_check:
to mark the thread as solved.

1 Like

If it were the GNOME thing, then XFCE desktop should be immune to this issue.

So you can install python3.9 following guides and after that you have to reinstall python3, python3-minimal, python3.8 and python3.8 minimal that everything works properly. You can also use this to install python 3.9 on your computer. (You should have a backup if you try this because I don't know if I'm right with this. :wink:)