无法打开软件和更新或其他驱动程序,也无法添加PPA

我已经搜索过我的问题,其他人的问题中没有任何答案对我的案情有所帮助。就我而言,我无法打开“软件和更新”或“其他驱动程序”,也无法通过终端添加任何PPA。 Ubuntu软件工作正常。

When attempting to launch software-properties-gtk through the terminal, I am greeted by the following error (which is similar to the error I get when trying to add a PPA):

   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 154, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 118, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 613, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Elementary/next

我偷偷怀疑这与以下事实有关:为了在Visual Studio Code(使用系统终端,而不是其自身终端)中运行代码,我将Ubuntu的默认版本从Python 2.7切换到了Python 3.8,但是我不能确定,我想就这种情况提供一些意见。

评论