So I was trying to get back the menu settings that dissapear after ubutu made the upgrade to 22.04 version.
Honestly I'm new in all this. This is the code that I'm getting:
I try:
root@blast-ThinkPad-T430:/home/blast# apt-get install gnome-control-center
I get:
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/usr/bin/python3'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/bin/python3'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.platlibdir = 'lib'
sys.executable = '/usr/bin/python3'
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python310.zip',
'/usr/lib/python3.10',
'/usr/lib/python3.10/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the file
system encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f4376fc2740 (most recent call first):
<no Python frame>
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks in advance.
Try to get back my settings menu and logo.
does your python-error disappear when using
sudo apt install gnome-control-center
instead of su / change user to root and leaving the sudo? Changing to root comes with more than just root privileges. You will use e.g. your user environment variables.
btw is this "missing settings UI" a weird thinkpad-bug? I know about this only from thinkpad users :O
This issue is mostly related to issues with the Gnome Control Center. Reinstall it by running this command:
sudo apt-get update && sudo apt-get install --reinstall gnome-control-center
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With