我有一个问题,software-properties-gtk
当我尝试打开它时会出错:
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 100, in <module>
app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 245, in __init__
self.init_distro()
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 424, in init_distro
distro = current_distro()
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/utils.py", line 72, in current_distro
releases = di.get_all(result="object")
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'
出于某种原因,当我运行时sudo software-properties-gtk
,它运行完美。但是,当我尝试打开桌面应用程序或在没有 sudo 的情况下运行它时,它会给我上面的错误。
我已经尝试过sudo apt-get install --reinstall python3-minimal
,虽然这里有很多关于 software-properties-gtk 的问题,但似乎没有一个与这个问题相匹配。