经过一些更新后,当我尝试启动 software-properties-gtk 时出现此错误:
~ /usr/bin/software-properties-gtk
/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py:40: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import GObject, Gdk, Gtk, Gio, GLib
/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py:40: 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 GObject, Gdk, Gtk, Gio, GLib
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 54, in <module>
from UbuntuDrivers import detect
ImportError: No module named 'UbuntuDrivers'
我需要什么软件包?我尝试找到 UbuntuDrivers,但没有成功
答案1
尝试这两个答案 看来你错误地删除了核心 Ubuntu 驱动程序的 Python 库包。尝试重新安装 ubuntu-drivers-common 包 https://t.codebug.vip/questions-1621597.htm
和