运行时software-properties-gtk
,出现此错误:
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'
尝试了很多方法,从重新安装,到尝试重新安装或安装不同的依赖项......
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 204, in __init__
self.init_distro()
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 392, 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'