Saturday, May 11, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 4220  / 1 Year ago, wed, february 22, 2023, 7:16:32

For some reason, I can't open the terminal through the shortcut (terminal icon) in Ubuntu 22.04. It works through Visual Studio Code, though, so that makes me confused. I tried using the F keys, but they are only working to the fn functions (such as controlling the brightness). I am not very knowledgeable on how Ubuntu works, so I am terribly confused.


I did try (unsuccesfully) to change my python version to 3.11.


Edit: The contents of /usr/share/applications/org.gnome.Terminal.desktop:


[Desktop Entry]
Name=Terminal
Comment=Use the command line
Keywords=shell;prompt;command;commandline;cmd;
TryExec=gnome-terminal
Exec=gnome-terminal
Icon=org.gnome.Terminal
Type=Application
Categories=GNOME;GTK;System;TerminalEmulator;
StartupNotify=true
StartupWMClass=Gnome-terminal
X-GNOME-SingleWindow=false
OnlyShowIn=GNOME;Unity;
Actions=new-window;preferences;
X-Ubuntu-Gettext-Domain=gnome-terminal

[Desktop Action new-window]
Name=New Window
Exec=gnome-terminal --window

[Desktop Action preferences]
Name=Preferences
Exec=gnome-terminal --preferences

More From » command-line

 Answers
5

If you try to change your python version in a linux distro, it will most certainly cripple your environment. Python is an integral part and may not be changed under any circumstances. There are many questions & answers about it in this forum.


What could you do?


Depending on how you installed it, try to remove every remnant of your python 3.11.x and install the origin python from the repos.


Since you cannot open terminal, open a virtual terminal with ctrl + alt + f3 and login with your username and password.


If your "orignal" version was not removed, you may tell the system to use it again:


sudo update-alternatives --config python3

Select the Version 3.10.6, if provided. If that doesn't work, you'll have to reinstall your Ubuntu again.


What if you need another python version?


There are many possible ways to install any python version in a special environment like "pipenv", "anaconda", "venv", you name it. See here for a small overview of virtual environments.


The current python version in Ubuntu 22.04 ist 3.10.6 as of today.


[#139] Friday, February 24, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ravturtl

Total Points: 335
Total Questions: 132
Total Answers: 110

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
ravturtl questions
Fri, Dec 3, 21, 22:16, 2 Years ago
Wed, Nov 3, 21, 07:30, 3 Years ago
Wed, May 19, 21, 17:31, 3 Years ago
Tue, Jan 17, 23, 23:56, 1 Year ago
;