Ubuntu 22.04 缺少设置菜单

Hug*_*ete 25 ubuntu settings menu new-operator ubuntu-22.04

所以我试图找回 ubutu 升级到 22.04 版本后消失的菜单设置。

老实说,我对这一切都是新手。这是我得到的代码:

我尝试:

root@blast-ThinkPad-T430:/home/blast# apt-get install gnome-control-center

我得到:

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>

Run Code Online (Sandbox Code Playgroud)

E: 子进程 /usr/bin/dpkg 返回错误代码 (1)

提前致谢。

尝试找回我的设置菜单和徽标。

小智 30

使用时你的 python 错误消失了吗

sudo apt install gnome-control-center
Run Code Online (Sandbox Code Playgroud)

而不是 su / 将用户更改为 root 并保留 sudo?更改为 root 不仅仅带来 root 权限。您将使用例如您的用户环境变量。

顺便说一句,这个“缺少设置 UI”是一个奇怪的 thinkpad-bug 吗?我只从 thinkpad 用户那里知道这一点:O


Sol*_*way 17

此问题主要与 Gnome 控制中心的问题有关。通过运行以下命令重新安装它:

sudo apt-get update && sudo apt-get install --reinstall gnome-control-center
Run Code Online (Sandbox Code Playgroud)

  • 对我来说,Ubuntu 22 更新后设置消失了,这很令人不安。重启后你的 cli 咒语发挥了作用。谢谢。 (2认同)