Ubuntu 16.04 - ImportError: 找不到模块名为 'UbuntuDrivers'

我在打开软件属性时遇到了一些问题,它一直关闭;甚至无法打开。我尝试在终端上打开它,但是出现了以下错误:
/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'

我该怎么办才能修复这个问题?或者说,我弄错了什么东西,不应该去碰它?
1个回答

看起来你不小心删除了核心Ubuntu驱动程序的Python库包。尝试重新安装ubuntu-drivers-common包。
sudo apt-get install --reinstall ubuntu-drivers-common

1你好,这是一个有点老的问题,我已经解决了,我甚至都不记得我是怎么做的,但还是谢谢 :) - Aguxez
1我尝试了很多事情,而这个方法有效,非常感谢。 - psychok7