我做了什么
在终端中运行命令
$ software-properties-gtk
我收到的
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, 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
's', (bus_name,), **keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
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/local/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 158, in __init__
proxy = bus.get_object("com.ubuntu.SoftwareProperties", "/")
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process com.ubuntu.SoftwareProperties received signal 11
我期待什么
使命令无错误
额外的
操作系统:Linux Ubuntu 18.04 LTS 以及您想知道的任何其他信息,我都很乐意为您提供。我尝试了很多解决方案,但都不起作用。
答案1
通常,您的工具链中存在某些问题,您需要重新安装该软件包。异常似乎表明 dbus 存在问题。我会先尝试重新安装它。
如果你没有安装 aptitude,请先执行以下操作:
sudo apt-get install aptitude
然后您可以使用 aptitude 重新安装 dbus。
sudo aptitude reinstall dbus
如果这没有帮助到你,你可能需要重新安装所有支持包。看看答案这里有关更多信息,这也是我找到有关重新安装 dbus 的信息的地方,我提到这似乎是可能的罪魁祸首。