我进入了sudo software-properties-gtk
终端,但软件和更新未打开。并且此命令 ( sudo software-properties-gtk
) 显示此错误。
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 101, in <module>
app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 98, in __init__
SoftwareProperties.__init__(self, options=options, datadir=datadir)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/trusty .
另外我想提一下,就在我从 ubuntu 13.04 升级到 ubuntu 13.10 的前几天。并且还显示 14.04 错误而不是 13.10 .... 提前致谢。
答案1
我遇到了同样的问题。只需lsr-release
使用以下步骤更改信息即可:
转到终端并输入以下内容:
gksudo gedit /etc/lsb-release
编辑该文件以获得以下内容:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.10 DISTRIB_CODENAME=saucy DISTRIB_DESCRIPTION="Ubuntu Saucy Salamander"
注意:此解决方案是根据以下答案优化的Apt“无法找到分发模板”错误