首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用软件-属性-gtk返回dbus.proxies

使用软件-属性-gtk返回dbus.proxies
EN

Stack Overflow用户
提问于 2021-11-16 13:47:57
回答 1查看 167关注 0票数 0

当前,当我在Xubuntu20.04上启动software-properties-gtksudo software-properties-gtk时,会出现以下错误。

代码语言:javascript
复制
    /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

EN

回答 1

Stack Overflow用户

发布于 2022-08-03 15:48:43

我试着重新安装了所有的软件包,即使是python的也没有成功。因此,我阅读了/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py中的代码,并注释了行222,一切都再次工作了!self.backend.Reload();-># self.backend.Reload();

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69990312

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档