'software-properties-gtk' 无法在 Ubuntu 21.04 中打开

'software-properties-gtk' 无法在 Ubuntu 21.04 中打开

最近我从 20.10 更新到了 Ubuntu 21.04。更新完成后几天内一切都正常了。我收到了系统更新通知和安全更新等。但几天前,我正考虑更新我的系统并尝试打开“软件和更新”(我知道这不会更新系统,请继续阅读)但我的错,我错误地点击了它,所以再次从应用程序列表中我点击了“软件更新程序”,但没有更新,我以为可能出了问题,我点击了设置按钮,然后出现一个提示说要报告,我很困惑,然后我意识到是什么software-properties-gtk导致了这个问题,并没有给我系统更新通知等等。然后在终端中我输入了以下内容sudo software-properties-gtk,这是我得到的输出:

lmao@lol:~$ sudo software-properties-gtk
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
    return self.get_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
    return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'com.ubuntu.SoftwareProperties': no such name

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 100, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 197, in __init__
    proxy = bus.get_object("com.ubuntu.SoftwareProperties", "/")
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
    return self.ProxyObjectClass(self, bus_name, object_path,
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name
    return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1

请不要将此问题标记为重复这个问题。 因为这个问题File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py"问题,但我的就是File "/usr/lib/python3/dist-packages/dbus/bus.py"。请帮我解决这个问题,从终端编辑存储库对我来说有点困难,所以我用它作为存储库编辑器度过了愉快的时光。(不是完全的,我总是使用终端来添加它们,只是用来software-properties-gtk禁用它。)

相关内容