当我使用sudo update-manager -c -d
更新系统时,它返回以下内容:
/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
Traceback (most recent call last):
File "/usr/bin/update-manager", line 38, in <module>
from UpdateManager.UpdateManager import UpdateManager
File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 43, in <module>
import dbus
File "/usr/lib/python3/dist-packages/dbus/__init__.py", line 82, 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'
谁能帮帮我吗?
答案1
要更新您的 Ubuntu,请执行以下操作::
sudo apt update
刷新存储库索引
sudo apt upgrade
:升级所有可升级的软件包
这会将您当前的所有软件包升级到最新版本。
如果你希望升级你的 Ubuntu,你可以这样做:sudo do-release-upgrade
你可以了解有关升级 Ubuntu 的更多信息这里。
如果它们都不起作用,那么很有可能是你的“sources.list”中存在问题/etc/apt/sources.list