You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Xubuntu 20.04运行software-properties-gtk出现dbus.proxies错误如何解决?

解决方案步骤

1. 修复Python requests依赖版本冲突

报错中的RequestsDependencyWarning是核心前置问题,通常是你手动通过pip安装的高版本urllib3、chardet和系统自带的requests版本不兼容导致的,先卸载本地pip安装的冲突包:

pip3 uninstall urllib3 chardet requests -y

再通过apt重装系统官方源提供的稳定适配版本:

sudo apt install --reinstall python3-requests python3-urllib3 python3-chardet

2. 修复损坏的software-properties与DBus关联组件

完全卸载重装software-properties相关组件,清除异常残留配置:

sudo apt purge software-properties-gtk software-properties-common python3-software-properties -y
sudo apt autoremove -y
sudo apt install software-properties-gtk -y

3. 修正GUI应用提权启动方式

不要直接用sudo启动GTK类GUI应用,会导致当前用户会话的DBus权限不匹配,触发服务调用失败,需要提权时请用pkexec替代sudo:

pkexec software-properties-gtk

如果仍启动失败,重置当前用户的DBus会话缓存后注销重登即可:

rm -rf ~/.dbus/session-bus/*

内容的提问来源于stack exchange,提问作者Herman C

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.26 08:15:08