Package: apt Version: 1.3.1 Severity: important With jessie, I get a warning whenever the Release file Suite/Codename do not match the sources.list but this warning was accidentally removed in Debian stretch. The bug exists because the code was re-organised and pkgAcqMetaBase::VerifyVendor calls metaIndex::GetExpectedDist() to get the expected suite/code name but this function just returns an empty string but the check for the issue relies on it returning something. I would like to see this fixed before the stretch release because I rely on it to detect problems in the sources.list files and Release files for the derivatives present in the Debian derivatives census. https://sources.debian.net/src/apt/1.3.1/apt-pkg/acquire-item.cc/?hl=1639#L1629 https://sources.debian.net/src/apt/1.3.1/apt-pkg/acquire-item.cc/?hl=1570#L1568 https://sources.debian.net/src/apt/1.3.1/apt-pkg/metaindex.cc/?hl=69#L66 pabs@lw08:~$ chdist apt-get ubuntu update Get:1 http://archive.ubuntu.com devel InRelease [247 kB] Get:2 http://archive.ubuntu.com devel/main amd64 Packages [1,224 kB] Get:3 http://archive.ubuntu.com devel/main Translation-en_AU [420 kB] Get:4 http://archive.ubuntu.com devel/main Translation-en [583 kB] Fetched 2,473 kB in 0s (2,809 kB/s) Reading package lists... Done W: Conflicting distribution: http://archive.ubuntu.com devel InRelease (expected devel but got zesty) pabs@lw08:~$ cat .chdist/ubuntu/etc/apt/sources.list # Current development release (zesty) deb [arch=amd64] http://archive.ubuntu.com/ubuntu devel main pabs@lw08:~$ egrep Suite\|Codename .chdist/ubuntu/var/lib/apt/lists/*Release Suite: zesty Codename: zesty pabs@lw08:~$ apt-cache --version apt 1.0.9.8.3 for amd64 compiled on Mar 12 2016 13:31:17 pabs@chianamo ~ $ cat .chdist/ubuntu/etc/apt/sources.list deb [arch=amd64] http://archive.ubuntu.com/ubuntu devel main pabs@chianamo ~ $ chdist apt ubuntu update Hit:1 http://archive.ubuntu.com/ubuntu devel InRelease Reading package lists... Done Building dependency tree... Done All packages are up to date. pabs@chianamo ~ $ chdist apt ubuntu -q -o Debug::pkgAcquire::Auth=true update 201 URI Done: http://archive.ubuntu.com/ubuntu/dists/devel/InRelease ReceivedHash: ExpectedHash: Hit:1 http://archive.ubuntu.com/ubuntu devel InRelease 201 URI Done: http://archive.ubuntu.com/ubuntu/dists/devel/InRelease ReceivedHash: ExpectedHash: Signature verification succeeded: /home/pabs/.chdist/ubuntu/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_devel_InRelease Got Codename: zesty Expecting Dist: Transformed Dist: Reading package lists... Building dependency tree... All packages are up to date. pabs@chianamo ~ $ egrep Suite\|Codename .chdist/ubuntu/var/lib/apt/lists/*Release Suite: zesty Codename: zesty pabs@chianamo ~ $ apt-cache --version apt 1.3.1 (amd64) -- System Information: Debian Release: stretch/sid APT prefers testing-debug APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages apt depends on: ii adduser 3.115 ii debian-archive-keyring 2014.3 ii gpgv 2.1.15-4 ii init-system-helpers 1.45 ii libapt-pkg5.0 1.3.1 ii libc6 2.24-3 ii libgcc1 1:6.2.0-6 ii libstdc++6 6.2.0-6 Versions of packages apt recommends: ii gnupg 2.1.15-4 ii gnupg1 1.4.21-1+b1 ii gnupg2 2.1.15-4 Versions of packages apt suggests: pn apt-doc <none> ii aptitude 0.8.3-1+b1 ii dpkg-dev 1.18.10 ii powermgmt-base 1.31+nmu1 ii python-apt 1.1.0~beta5 -- no debconf information -- bye, pabs https://wiki.debian.org/PaulWise
Attachment:
signature.asc
Description: This is a digitally signed message part