首页 > 解决方案 > 使用 software-properties-gtk 返回 dbus.proxies

问题描述

当我启动software-properties-gtksudo software-properties-gtk在 xubuntu 20.04 上时,我目前收到以下错误。

    /usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.7) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
ERROR:dbus.proxies:Introspect error on :1.452:/: 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 222, in __init__
    self.backend.Reload();
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
  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: The name :1.452 was not provided by any .service files

我已经尝试过这些解决方案,但没有奏效:

sudo apt-get update && sudo apt-get install --reinstall python3-six python3-certifi

sudo apt update && sudo apt full-upgrade

标签: pythonlinuxubuntu-20.04xfce

解决方案


推荐阅读