I don't know whether this is the same bug in apt, or a different bug
in apt-p2p. If the latter, sorry for the noise. This is in a more or
less cleanly installed VM with sources mixed between Testing / Sid /
Experimental. I've attached a log in which I 'aptitude update' and
then 'aptitude install less'. This is an excerpt:
2012-12-13 20:27:00+0000 [-] An error occurred while looking up a hash
for: /dists/experimental/InRelease
2012-12-13 20:27:00+0000 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 524, in __bootstrap
self.__bootstrap_inner()
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py",
line 207, in _worker
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py",
line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/python/context.py",
line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib/pymodules/python2.7/apt_p2p/AptPackages.py", line
334, in _load
self.cache = apt_pkg.Cache(OpProgress())
exceptions.SystemError: E:The value 'testing' is invalid for
APT::Default-Release as such a release is not available in the sources
-------
# cat /etc/apt/sources.list.d/*
# deb http://ftp.de.debian.org/debian/ experimental main
deb http://localhost:9977/ftp.de.debian.org/debian/ experimental main
non-free contrib
deb-src http://localhost:9977/ftp.de.debian.org/debian/ experimental
main non-free contrib
# deb http://ftp.de.debian.org/debian/ unstable main
deb http://localhost:9977/ftp.de.debian.org/debian/ unstable main
non-free contrib
deb-src http://localhost:9977/ftp.de.debian.org/debian/ unstable main
non-free contrib
# deb http://ftp.de.debian.org/debian/ testing main
deb http://localhost:9977/ftp.de.debian.org/debian/ testing main
non-free contrib
deb-src http://localhost:9977/ftp.de.debian.org/debian/ testing main
non-free contrib
# apt-cache policy apt apt-p2p
apt:
Installed: 0.9.7.6
Candidate: 0.9.7.6
Version table:
0.9.7.7 0
500 http://localhost/ftp.de.debian.org/debian/ unstable/main
amd64 Packages
*** 0.9.7.6 0
990 http://localhost/ftp.de.debian.org/debian/ testing/main
amd64 Packages
100 /var/lib/dpkg/status
apt-p2p:
Installed: 0.1.6+nmu1
Candidate: 0.1.6+nmu1
Version table:
*** 0.1.6+nmu1 0
500 http://localhost/ftp.de.debian.org/debian/ unstable/main
amd64 Packages
990 http://localhost/ftp.de.debian.org/debian/ testing/main
amd64 Packages
100 /var/lib/dpkg/status
# cat /etc/apt/apt.conf.d/80defaultrelease
APT::Default-Release "testing";
Attachment:
apt-p2p.log
Description: Binary data