Bug#802515: SystemError: E:The value 'stretch' is invalid for APT::Default-Release as such a release is not available in the sources
Package: python-apt
Version: 1.0.1
Severity: important
Hi!
The following code leads to the mentioned SystemError:
/==========
In [1]: import apt_pkg
In [2]: import apt
In [3]: progress = apt.progress.base.OpProgress()
In [4]: apt_pkg.Cache(progress)
---------------------------------------------------------------------------
SystemError Traceback (most recent call last)
<ipython-input-5-75f3bd887983> in <module>()
----> 1 apt_pkg.Cache(progress)
SystemError: E:The value 'stretch' is invalid for APT::Default-Release as such a release is not available in the sources
\==========
This should be #676468 in apt-xapian-index.
Regards
Christoph
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python-apt depends on:
ii libapt-inst1.7 1.0.10.2
ii libapt-pkg4.16 1.0.10.2
ii libc6 2.19-22
ii libgcc1 1:5.2.1-17
ii libstdc++6 5.2.1-17
ii python 2.7.9-1
ii python-apt-common 1.0.1
pn python:any <none>
Versions of packages python-apt recommends:
ii iso-codes 3.62-1
ii lsb-release 9.20150917
ii xz-utils 5.1.1alpha+20120614-2.1
Versions of packages python-apt suggests:
pn python-apt-dbg <none>
pn python-apt-doc <none>
-- no debconf information
Reply to: