Adr*_*hen 7 software-center python dbus
我试图更新我的 Python 并搞砸了我的整个系统。
我现在可以启动我的软件中心。我尝试谷歌搜索多个修复程序,但没有任何帮助。我的软件中心无法启动。
当我尝试启动它时,此错误显示:
astephen@localhost:/usr/bin$ ./software-centerGtk-Message: Failed to load module "gtk-vector-screenshot"
Traceback (most recent call last):
File "./software-center", line 36, in <module>
from softwarecenter.utils import (
File "/usr/share/software-center/softwarecenter/utils.py", line 19, in <module>
import dbus
ImportError: No module named dbus
Run Code Online (Sandbox Code Playgroud)
我尝试dbus使用以下方法重新安装:
apt-get install --reinstall dbus
Run Code Online (Sandbox Code Playgroud)
但它没有帮助。
astephen@localhost:/usr/bin$ sudo apt-get install --reinstall dbusReading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/231 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 676272 files and directories currently installed.)
Preparing to unpack .../dbus_1.6.18-0ubuntu4.3_amd64.deb ...
Unpacking dbus (1.6.18-0ubuntu4.3) over (1.6.18-0ubuntu4.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up dbus (1.6.18-0ubuntu4.3) ...
Run Code Online (Sandbox Code Playgroud)
快速搜索后发现,Python DBUS 模块的 Debian 软件包名称为python-dbus(或python3-dbus)。为什么尽管它是software-center包的显式依赖项但它不可用,这超出了我的理解。您应该重新安装这两个软件包,以防它们损坏:
sudo apt-get install --reinstall software-center python-dbus
Run Code Online (Sandbox Code Playgroud)
\n\n\n阿德里安·奥尼尔·斯蒂芬\n :
\n\n我尝试运行 sudo -h pip install dbus 但它返回: 找不到满足 dbus 要求的版本(来自版本:)没有找到 dbus 的匹配发行版 有什么想法吗?:( \xe2\x80\x93
\n
然而,关于你所做的事情的更多信息将会有所帮助,但我的预感是:
\n\n升级到python3时,模块有时会更改名称/导入过程发生变化;你是否手动删除了旧的 python 环境或从 git 安装了一些东西?
\n\n安装 aptitude,它会推荐解决依赖关系的方法。但是,请务必小心,始终检查它想要做什么,哪些其他事情可能会受到此更改的影响,并写下您所做的事情以及 aptitude 所做的事情, 以便您始终可以撤消可能的失误。
\n\n有时最好删除所有内容(在复杂的操作系统错误问题中,备份所有内容后,最好使用要备份的应用程序的导出功能。这会让事情变得更容易)。
\n| 归档时间: |
|
| 查看次数: |
20592 次 |
| 最近记录: |