python - 使用 software-properties-gtk 返回 dbus.proxies
问题描述
当我启动software-properties-gtk
或sudo 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
解决方案
推荐阅读
- firebase - Flutter:类“DatabaseReference”没有实例方法“cancel”
- python - 理解类表达式 __init__(${1:self})$0:
- python-3.x - 如何将文本文件的每一行传输到 Excel 单元格?
- html - 引导卡不可点击
- javascript - 如何使用 Javascript 连接到 Admanager API?
- rxjs - Angular9/rxjs6.5:如何将可观察对象数组的数组转换为可观察对象属性数组?
- javascript - 如何提高灯塔分数 在 Sapper 中进行交互的时间
- google-bigquery - 我们如何根据时间或日期列从另一个表中复制 BQ 表?
- asp.net-mvc - 如何在不更新 EF 版本的情况下更新我的模型?
- html - 从网站的 HTML 中获取一条数据并将其分配给一个变量