Ubuntu 20.04 软件更新崩溃

Ubuntu 20.04 软件更新崩溃

全新 sys76 Thelio 桌面,搭载 ubuntu 20.04

在安装过程中,在链接在线帐户(谷歌)时,安装挂起,我不得不硬重启。安装似乎在重启后重新开始,这次跳过了链接在线帐户。安装完成,一切似乎都很好。然而,当我尝试启动软件更新时,它崩溃了。我重新启动并再次尝试启动软件更新,结果还是一样。

看来,除非我修复了这个问题,否则我将无法安装或升级软件。如能提供任何有关如何修复这个问题的帮助,我将不胜感激。谢谢。

以下内容来自应用程序日志:


12:10:32 update-manager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
12:10:32 update-manager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
12:10:32 update-manager:     trans = yield self.client.update_cache(defer=True)
12:10:32 update-manager:   File "/usr/lib/python3/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py", line 66, in update
12:10:32 update-manager:     result = gen.throw(excep)
12:10:32 update-manager:   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 483, in _inline_callbacks
12:10:32 update-manager: Traceback (most recent call last):
12:10:32 update-manager: During handling of the above exception, another exception occurred:
12:10:32 update-manager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name
12:10:32 update-manager:     reply_message = self.send_message_with_reply_and_block(
12:10:32 update-manager:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
12:10:32 update-manager:     return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
12:10:32 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
12:10:32 update-manager:     return self.get_name_owner(bus_name)
12:10:32 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
12:10:32 update-manager: Traceback (most recent call last):
12:10:30 update-manager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
12:10:30 update-manager:     reply_message = self.send_message_with_reply_and_block(
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
12:10:30 update-manager:     return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name
12:10:30 update-manager:     self.start_service_by_name(bus_name)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
12:10:30 update-manager:     self._named_service = conn.activate_name_owner(bus_name)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
12:10:30 update-manager:     return self.ProxyObjectClass(self, bus_name, object_path,
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
12:10:30 update-manager:     return dbus.Interface(bus.get_object("org.debian.apt",
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1709, in get_aptdaemon
12:10:30 update-manager:     daemon = get_aptdaemon(self.bus)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1623, in _run_transaction_helper
12:10:30 update-manager:     result = gen.send(result)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
12:10:30 update-manager:     raise self.value.with_traceback(self.traceback)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 130, in raise_exception
12:10:30 update-manager:     error.raise_exception()
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1594, in on_error
12:10:30 update-manager: Traceback (most recent call last):
12:10:30 update-manager: During handling of the above exception, another exception occurred:
12:10:30 update-manager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name
12:10:30 update-manager:     reply_message = self.send_message_with_reply_and_block(
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
12:10:30 update-manager:     return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
12:10:30 update-manager:     return self.get_name_owner(bus_name)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
12:10:30 update-manager: Traceback (most recent call last):
12:10:30 update-manager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
12:10:30 update-manager:     reply_message = self.send_message_with_reply_and_block(
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
12:10:30 update-manager:     return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name
12:10:30 update-manager:     self.start_service_by_name(bus_name)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
12:10:30 update-manager:     self._named_service = conn.activate_name_owner(bus_name)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
12:10:30 update-manager:     return self.ProxyObjectClass(self, bus_name, object_path,
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
12:10:30 update-manager:     return dbus.Interface(bus.get_object("org.debian.apt",
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1709, in get_aptdaemon
12:10:30 update-manager:     daemon = get_aptdaemon(self.bus)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1623, in _run_transaction_helper
12:10:30 update-manager:     result = gen.send(result)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
12:10:30 update-manager: Traceback (most recent call last):
12:10:30 update-manager: During handling of the above exception, another exception occurred:
12:10:30 update-manager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name
12:10:30 update-manager:     reply_message = self.send_message_with_reply_and_block(
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
12:10:30 update-manager:     return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
12:10:30 update-manager:     return self.get_name_owner(bus_name)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
12:10:30 update-manager: Traceback (most recent call last):
12:10:30 update-manager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
12:10:30 update-manager:     reply_message = self.send_message_with_reply_and_block(
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
12:10:30 update-manager:     return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name
12:10:30 update-manager:     self.start_service_by_name(bus_name)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
12:10:30 update-manager:     self._named_service = conn.activate_name_owner(bus_name)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
12:10:30 update-manager:     return self.ProxyObjectClass(self, bus_name, object_path,
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
12:10:30 update-manager:     return dbus.Interface(bus.get_object("org.debian.apt",
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1709, in get_aptdaemon
12:10:30 update-manager:     daemon = get_aptdaemon(self.bus)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 1623, in _run_transaction_helper
12:10:30 update-manager:     result = gen.send(result)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/defer/__init__.py", line 487, in _inline_callbacks
12:10:30 update-manager: Traceback (most recent call last):
12:10:30 update-manager: During handling of the above exception, another exception occurred:
12:10:30 update-manager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.debian.apt': no such name
12:10:30 update-manager:     reply_message = self.send_message_with_reply_and_block(
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
12:10:30 update-manager:     return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
12:10:30 update-manager:     return self.get_name_owner(bus_name)
12:10:30 update-manager:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner

答案1

长话短说,经过一番研究和检查日志后,我决定尝试重新安装一些东西。为此,我尝试了以下操作:

sudo apt-get install --reinstall dbus python-dbus python3-dbus

幸运的是,这似乎解决了这个问题。

相关内容