在 Ubuntu 18.04 上升级到 python 3.7 后,我无法再启动软件更新程序。运行 software-properties-gtk 得到:
$ software-properties-gtk
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 37, in <module>
from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 30, in <module>
import dbus
File "/usr/lib/python3/dist-packages/dbus/__init__.py", line 77, in <module>
import dbus.types as types
File "/usr/lib/python3/dist-packages/dbus/types.py", line 6, in <module>
from _dbus_bindings import (
ModuleNotFoundError: No module named '_dbus_bindings'
python-dbus 和 python3-dbus 都安装最新版本 (1.2.6-1)。
任何帮助都将不胜感激!