当前,当我在Xubuntu20.04上启动software-properties-gtk或sudo software-properties-gtk时,会出现以下错误。
/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
发布于 2022-08-03 15:48:43
我试着重新安装了所有的软件包,即使是python的也没有成功。因此,我阅读了/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py中的代码,并注释了行222,一切都再次工作了!self.backend.Reload();-># self.backend.Reload();
https://stackoverflow.com/questions/69990312
复制相似问题