Package: software-properties-common Version: 0.96.20.2-1 Severity: important Tags: patch
software-properties-common is missing a template for stretch I tried this on a VM based installed from the 20170130 daily build netinstall iso. root@debian-testing:/etc/apt# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.0 (stretch) Release: 9.0 Codename: stretch ii software-properties-common 0.96.20.2-1 $ sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ \ debian-$(lsb_release -cs) \ main" Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 95, in <module> sp = SoftwareProperties(options=options) 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 Debian/stretch root@debian-testing:/etc/apt# grep -i stretch /usr/share/python-apt/templates/Debian.info root@debian-testing:/etc/apt# Patch included.
--- Debian.info.orig 2017-01-30 12:21:12.151232244 +0100 +++ Debian.info 2017-01-30 12:23:21.815999576 +0100 @@ -1,5 +1,35 @@ ChangelogURI: http://packages.debian.org/changelogs/pool/%s/%s/%s/%s_%s/changelog +Suite: stretch +RepositoryType: deb +BaseURI: http://http.us.debian.org/debian/ +MatchURI: ftp[0-9]*\.([a-z]*\.){0,1}debian\.org +MirrorsFile: Debian.mirrors +Description: Debian 8 'stretch' +Component: main +CompDescription: Officially supported +Component: contrib +CompDescription: DFSG-compatible Software with Non-Free Dependencies +Component: non-free +CompDescription: Non-DFSG-compatible Software + +Suite: stretch/updates +RepositoryType: deb +BaseURI: http://security.debian.org/ +MatchURI: security\.debian\.org +ParentSuite: stretch +Description: Security updates + +Suite: stretch-updates +RepositoryType: deb +ParentSuite: stretch +Description: Recommended updates + +Suite: stretch-proposed-updates +RepositoryType: deb +ParentSuite: stretch +Description: Proposed updates + Suite: jessie RepositoryType: deb BaseURI: http://http.us.debian.org/debian/

