add-apt-repository 出现以下错误
Tofloor
poster avatar
haobin
deepin
2019-06-16 02:09
Author
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 160, in
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)   
  File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/stable

Reply Favorite View the author
All Replies
avatar
c1368685699
deepin
2019-08-27 06:32
#1
我也是这个问题,没解决方案
Reply View the author
avatar
luoshui0_0tianyi
deepin
2019-09-24 19:00
#2
到debian的官方源找到 python-software-properties 安装就行

http://ftp.cn.debian.org/debian/pool/main/s/software-properties/python-software-properties_0.92.25debian1_all.deb
Reply View the author