Ubuntu运行software-properties-gtk时遭遇D-Bus错误求助
Ubuntu运行
software-properties-gtk遭遇DBus激活失败错误 在Ubuntu系统中执行software-properties-gtk时触发以下错误:
kkaletka@kkaletka:~$ software-properties-gtk Error: cannot parse D-BUS name from exception: Could not activate remote peer: unit failed.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: The name does not have an owner 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 210, 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.ServiceUnknown: Could not activate remote peer: unit failed.
已尝试的解决步骤
- 执行
systemctl status dbus检查D-Bus服务,确认服务正常运行 - 运行
sudo apt update和sudo apt upgrade更新系统 - 通过
sudo apt remove --purge software-properties-gtk卸载后重装software-properties-gtk - 执行
sudo systemctl restart NetworkManager.service重启NetworkManager服务 - 查看系统日志获取详细错误信息
以上操作均未解决问题,希望得到进一步的解决建议或排查思路。
内容的提问来源于stack exchange,提问作者Kamil Kaletka
相关产品推荐
相关产品推荐

