Agu*_*xez 7 package-management python apt
我在打开软件属性时遇到了一些问题,它正在关闭;甚至无法打开。我试图在终端上打开它,但出现此错误:
/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'
Run Code Online (Sandbox Code Playgroud)
我能做些什么来解决这个问题?或者我做了什么我不应该做的事情?
小智 11
您似乎错误地删除了核心 Ubuntu 驱动程序的 Python 库包。尝试重新安装ubuntu-drivers-common软件包。
sudo apt-get install --reinstall ubuntu-drivers-common
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2634 次 |
| 最近记录: |