On 08/26/2012 10:14 PM, Nikolaus Rath wrote: > On 08/26/2012 10:06 PM, Jeff Licquia wrote: >> > On 08/11/2012 09:49 PM, Nikolaus Rath wrote: >>> >> Here we go: >> > >> > I've played with this a little, using the results from the dir listings >> > (which don't look odd to me). >> > >> > From what I can tell, the ultimate cause of the failure is when apt >> > decides to invalidate all repositories and "apt-cache policy" only >> > reports the local dpkg database as a valid "repo". At that point, the >> > code uses different logic to try and figure out the distro information, >> > which doesn't include the CODENAME. >> > >> > So there are a number of ways to fix the problem: >> > >> > - When unattended-upgrades decides to stop working, I would bet that >> > "apt-cache policy" only returns the "100 /var/lib/dpkg/status" package >> > file. Figure out why that's happening and make it not happen, and I'm >> > sure lsb_release would fall into line. > > I'll check that and report back. >
I'm afraid apt returns a lot more: [0] vostro:~# apt-cache policy Package files: 100 /var/lib/dpkg/status release a=now 500 http://www.mendeley.com/repositories/ubuntu/stable/ Packages release o=Mendeley,l=Mendeley,c= origin www.mendeley.com 500 http://download.jitsi.org/deb/ unstable/ Packages release o=jitsi.org,a=unstable,n=sid,l=Jitsi Debian packages repository,c= origin download.jitsi.org 100 http://www.deb-multimedia.org/ wheezy/non-free amd64 Packages release v=None,o=Unofficial Multimedia Packages,a=testing,n=wheezy,l=Unofficial Multimedia Packages,c=non-free origin www.deb-multimedia.org 100 http://www.deb-multimedia.org/ wheezy/main amd64 Packages release v=None,o=Unofficial Multimedia Packages,a=testing,n=wheezy,l=Unofficial Multimedia Packages,c=main origin www.deb-multimedia.org 500 http://security.debian.org/ wheezy/updates/main amd64 Packages release o=Debian,a=testing,n=wheezy,l=Debian-Security,c=main origin security.debian.org 500 http://http.debian.net/debian/ wheezy/non-free Translation-en 500 http://http.debian.net/debian/ wheezy/main Translation-en 500 http://http.debian.net/debian/ wheezy/contrib Translation-en 500 http://http.debian.net/debian/ wheezy/non-free amd64 Packages origin http.debian.net 500 http://http.debian.net/debian/ wheezy/contrib amd64 Packages origin http.debian.net 500 http://http.debian.net/debian/ wheezy/main amd64 Packages origin http.debian.net Pinned packages: [0] vostro:~# python -c 'import lsb_release; print lsb_release.get_distro_information()' {'RELEASE': 'testing/unstable', 'OS': 'GNU/Linux', 'ID': 'Debian', 'DESCRIPTION': 'Debian GNU/Linux testing/unstable'} Best, -Nikolaus -- »Time flies like an arrow, fruit flies like a Banana.« PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org