ubuntu 18.04 软件属性-gtk 失败

ubuntu 18.04 软件属性-gtk 失败

当我尝试打开软件和更新时,ubuntu 18.04 软件属性-gtk 失败,它没有打开,当我尝试sudo software-properties-gtk

它返回这个错误

ERROR:dbus.proxies:Introspect error on :1.136:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
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 173, in __init__
    self.backend.Reload();
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.136 was not provided by any .service files

我尝试重新安装软件属性-gtk但它不起作用我也尝试按照其他博客的建议重新安装 python-six 包但也没有解决我的问题。

答案1

尝试以下操作

sudo apt reinstall python3-six python3-certifi

18.04我在和上都被这个问题困扰了好几个月20.04。我在一个论坛上找到了这个答案,它起作用了。

答案2

可能是同一个问题,解决方案已分享这里

据蒂姆·理查森所述:

软件包 python3-six 已安装(我的软件包管理器如此说)。当我重新安装该软件包时,software-properties-gtk 再次可以工作。

您可以尝试安装 python-six 包并重新安装 software-properties-gtk。

sudo apt install python-six

或者你可能想通过 pip 安装它

pip install six

安装 python-six 包后,重新安装 software-properties-gtk

sudo apt install --reinstall software-properties-gtk

希望它能解决你的问题。

相关内容