at bottom :- On 20/11/2016, Guillem Jover <guil...@debian.org> wrote: > Control: retitle -1 dpkg-maintscript-helper: Version comparison fails for > supposedly valid versions > Control: severity -1 serious > > Hi! > > On Fri, 2016-11-18 at 14:02:39 +0530, shirish शिरीष wrote: >> Package: dpkg >> Version: 1.18.14 >> Severity: normal > >> It seems the bug is in dpkg 1.18.11 and above. I was suffering from >> some sort of broken packages. I shared my issue at >> http://unix.stackexchange.com/questions/323817/debian-strech-update-broken-seems-buggy-dpkg >> . It took quite some time but it seems that dpkg at least 1.18.14 is >> somewhat broken/buggy in its implementation. In dpkg 1.18.10 I am able >> to fix the broken packages. These happened a few more times. I did run >> a few checks >> http://unix.stackexchange.com/questions/324151/how-to-find-out-half-configured-broken-packages-in-debian >> but found nothing untoward. > > Please include your reports inline, instead of referencing outside > resources, because this means those details might disappear (in the > future) in case those sites are shutdown, or it requires maintainers > to be online to check them. > > Ok, so this is about the dpkg-maintscript-helper failing on the > version validation check for supposedly valid versions. This was > recently reported on IRC too, but we were unable to reproduce it. If > you can still reproduce it, I'd appreciate if you could apply the > attached patch to your installed dpkg-maintscript-helper script > (from a dpkg version > 1.18.11) and rerun the failing package. > > Oh, I think I know what's wrong now, the attached patch should in > principle fix that. > > Thanks, > Guillem >
Dear Guillem, The patch didn't work :( First let me share the changes file that got generated, maybe the rebuild I did was wrong - please check - ┌─[shirish@debian] - [~/games] - [5845] └─[$] cat dpkg_1.18.15+nmu1_amd64.changes [1:44:47] Format: 1.8 Date: Mon, 21 Nov 2016 01:04:02 +0530 Source: dpkg Binary: dpkg libdpkg-dev dpkg-dev libdpkg-perl dselect Architecture: source amd64 all Version: 1.18.15+nmu1 Distribution: UNRELEASED Urgency: medium Maintainer: Dpkg Developers <debian-d...@lists.debian.org> Changed-By: shirish <shirish@debian> Description: dpkg - Debian package management system dpkg-dev - Debian package development tools dselect - Debian package management front-end libdpkg-dev - Debian package management static library libdpkg-perl - Dpkg perl modules Changes: dpkg (1.18.15+nmu1) UNRELEASED; urgency=medium . * Non-maintainer upload. * Apply d-m-h fix from #844701 Checksums-Sha1: 8e50f097f70d621071e1e22384c1d68da7693929 1169 dpkg_1.18.15+nmu1.dsc 16aa8483b0ce8d9eb1f0daebca6da84578226966 4617028 dpkg_1.18.15+nmu1.tar.xz 3f3eae9de5bb31e178a4acb32654e68410902bda 1238392 dpkg-dbgsym_1.18.15+nmu1_amd64.deb 3877d627c7c70bd98f16ee0b71d80c69667a6885 1581332 dpkg-dev_1.18.15+nmu1_all.deb b678906567a0c8ba089a5eb109855eba608f60e7 2067816 dpkg_1.18.15+nmu1_amd64.deb 6130872887cd4eeba0b0cc0d0c7354322709dfe7 280736 dselect-dbgsym_1.18.15+nmu1_amd64.deb 58eb460ab48e1c802ee7ae439dc0295424ef7742 1270868 dselect_1.18.15+nmu1_amd64.deb 41e17c39ced6f55b9e72d042255a7a9b647b2e8e 1040980 libdpkg-dev_1.18.15+nmu1_amd64.deb a38005cde488603a7ee5de9ce7bc307c79277bb9 1242182 libdpkg-perl_1.18.15+nmu1_all.deb Checksums-Sha256: 2c8cf8ab1256814aa7115009a4620da913b27935351872335cd429ae4e7a9c70 1169 dpkg_1.18.15+nmu1.dsc 47390a1ca4a296852ef3c25c0bdc82217e49738438882a980e8da28dca0d809e 4617028 dpkg_1.18.15+nmu1.tar.xz 4a47a968b5dd4b1e87c99e5de9e3fd31b610ebb1891989de3a72ef08afb3405b 1238392 dpkg-dbgsym_1.18.15+nmu1_amd64.deb a05ae6dcefd5bc9affe355c8dd4106b42f795678fa4de31bc063a9784fc845ab 1581332 dpkg-dev_1.18.15+nmu1_all.deb b9682da9975541f385b47cf1148028deea4a48a51156293589b124c6f706d7b7 2067816 dpkg_1.18.15+nmu1_amd64.deb d75479bb9005788d96e839ae8b2dde56701993ac6421df1f5aaf79634f008a48 280736 dselect-dbgsym_1.18.15+nmu1_amd64.deb 8b317f45808d408485c566b9748522d63d556bcec7525dcaa442a9720073dd27 1270868 dselect_1.18.15+nmu1_amd64.deb e45e67c3ab034ed3d1bf9f268daba92ee3cc406c3b75ef2bd0354ec79dc30d7f 1040980 libdpkg-dev_1.18.15+nmu1_amd64.deb d75ff545c612a7eb5f4563bb3619cd33ea4d4baff6cade9452e94bb1e7b7a412 1242182 libdpkg-perl_1.18.15+nmu1_all.deb Files: faab0ae6b71c8216a634cbef6759d122 1169 admin required dpkg_1.18.15+nmu1.dsc 69eeaa680e11f291860217a9536e93dc 4617028 admin required dpkg_1.18.15+nmu1.tar.xz 91961eae15e20a3bf2ad614cf42ee4ab 1238392 debug extra dpkg-dbgsym_1.18.15+nmu1_amd64.deb aa361b4cde6020393c75a601c51f54e6 1581332 utils optional dpkg-dev_1.18.15+nmu1_all.deb 325a9629e03781c027f884a17ada0550 2067816 admin required dpkg_1.18.15+nmu1_amd64.deb 75dbcd90ada67522d79206b65519865e 280736 debug extra dselect-dbgsym_1.18.15+nmu1_amd64.deb e490b38b2b132c26670635628e302941 1270868 admin optional dselect_1.18.15+nmu1_amd64.deb 0d206c14b1ffd5cb6b09608e9774b3bf 1040980 libdevel optional libdpkg-dev_1.18.15+nmu1_amd64.deb e22e289a709d36d2186da60e07b68225 1242182 perl optional libdpkg-perl_1.18.15+nmu1_all.deb Trying with the new versions got this (again) - [$] sudo aptitude reinstall cme libconfig-model-perl libconfig-model-dpkg-perl fonts-arphic-uming [1:46:39] The following packages will be REINSTALLED: cme fonts-arphic-uming libconfig-model-dpkg-perl libconfig-model-perl 0 packages upgraded, 0 newly installed, 4 reinstalled, 0 to remove and 45 not upgraded. Need to get 0 B/8,465 kB of archives. After unpacking 0 B will be used. D000001: ensure_diversions: new, (re)loading D000001: ensure_statoverrides: new, (re)loading (Reading database ... 1207479 files and directories currently installed.) Preparing to unpack .../0-fonts-arphic-uming_0.2.20080216.2-7_all.deb ... D000001: process_archive oldversionstatus=broken due to postinst failure dpkg-maintscript-helper: error: version '0.2.20080216.2-1' is not valid: D000001: cmpversions a='0:0.2.20080216.2-1' b='0:0' r=302 dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... dpkg-maintscript-helper: error: version '0.2.20080216.2-1' is not valid: D000001: cmpversions a='0:0.2.20080216.2-1' b='0:0' r=302 dpkg: error processing archive /tmp/apt-dpkg-install-KUG6gL/0-fonts-arphic-uming_0.2.20080216.2-7_all.deb (--unpack): subprocess new pre-removal script returned error exit status 1 D000001: ensure_diversions: same, skipping dpkg-maintscript-helper: error: version '0.2.20080216.2-6~' is not valid: D000001: cmpversions a='0:0.2.20080216.2-6~' b='0:0' r=302 dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 D000001: ensure_diversions: same, skipping Preparing to unpack .../1-cme_1.015-1_all.deb ... D000001: process_archive oldversionstatus=broken due to postinst failure dpkg-maintscript-helper: error: version '1.008-1~' is not valid: D000001: cmpversions a='0:1.008-1~' b='0:0' r=1 dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... dpkg-maintscript-helper: error: version '1.008-1~' is not valid: D000001: cmpversions a='0:1.008-1~' b='0:0' r=1 dpkg: error processing archive /tmp/apt-dpkg-install-KUG6gL/1-cme_1.015-1_all.deb (--unpack): subprocess new pre-removal script returned error exit status 1 D000001: ensure_diversions: same, skipping dpkg-maintscript-helper: error: version '1.008-1~' is not valid: D000001: cmpversions a='0:1.008-1~' b='0:0' r=1 dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 D000001: ensure_diversions: same, skipping Preparing to unpack .../2-libconfig-model-perl_2.094-1_all.deb ... D000001: process_archive oldversionstatus=broken due to postinst failure dpkg-maintscript-helper: error: version '2.075-2~' is not valid: D000001: cmpversions a='0:2.075-2~' b='0:0' r=1 dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... dpkg-maintscript-helper: error: version '2.075-2~' is not valid: D000001: cmpversions a='0:2.075-2~' b='0:0' r=1 dpkg: error processing archive /tmp/apt-dpkg-install-KUG6gL/2-libconfig-model-perl_2.094-1_all.deb (--unpack): subprocess new pre-removal script returned error exit status 1 D000001: ensure_diversions: same, skipping dpkg-maintscript-helper: error: version '2.070-1~' is not valid: D000001: cmpversions a='0:2.070-1~' b='0:0' r=1 dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 D000001: ensure_diversions: same, skipping Preparing to unpack .../3-libconfig-model-dpkg-perl_2.085_all.deb ... D000001: process_archive oldversionstatus=broken due to postinst failure dpkg-maintscript-helper: error: version '2.070~' is not valid: D000001: cmpversions a='0:2.070~' b='0:0' r=1 dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... dpkg-maintscript-helper: error: version '2.070~' is not valid: D000001: cmpversions a='0:2.070~' b='0:0' r=1 dpkg: error processing archive /tmp/apt-dpkg-install-KUG6gL/3-libconfig-model-dpkg-perl_2.085_all.deb (--unpack): subprocess new pre-removal script returned error exit status 1 D000001: ensure_diversions: same, skipping dpkg-maintscript-helper: error: version '2.070~' is not valid: D000001: cmpversions a='0:2.070~' b='0:0' r=1 dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 D000001: ensure_diversions: same, skipping D000001: cmpversions a='0:2016.03.30' b='0:2016.05.24' r=-2 D000001: cmpversions a='0:1.18.15+nmu1' b='0:1.16' r=2 D000001: cmpversions a='0:1.18.15+nmu1' b='0:1.16' r=2 D000001: cmpversions a='0:1.18.15+nmu1' b='0:1.16' r=2 Errors were encountered while processing: /tmp/apt-dpkg-install-KUG6gL/0-fonts-arphic-uming_0.2.20080216.2-7_all.deb /tmp/apt-dpkg-install-KUG6gL/1-cme_1.015-1_all.deb /tmp/apt-dpkg-install-KUG6gL/2-libconfig-model-perl_2.094-1_all.deb /tmp/apt-dpkg-install-KUG6gL/3-libconfig-model-dpkg-perl_2.085_all.deb D000001: cmpversions a='0:1.4.0-1~local' b='0:1.4.0-1~local' r=0 ====== How can you help? (doc: https://wiki.debian.org/how-can-i-help ) ====== ----- Show old opportunities as well as new ones: how-can-i-help --old ----- needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) D000001: ensure_diversions: new, (re)loading D000001: process queue pkg fonts-arphic-uming:all queue.len 3 progress 1, try 1 dpkg: error processing package fonts-arphic-uming (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration D000001: process queue pkg cme:all queue.len 2 progress 1, try 1 D000001: process queue pkg libconfig-model-perl:all queue.len 2 progress 2, try 1 dpkg: error processing package libconfig-model-perl (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration D000001: process queue pkg libconfig-model-dpkg-perl:all queue.len 1 progress 1, try 1 dpkg: dependency problems prevent configuration of libconfig-model-dpkg-perl: libconfig-model-dpkg-perl depends on libconfig-model-perl (>= 2.092); however: Package libconfig-model-perl is not configured yet. dpkg: error processing package libconfig-model-dpkg-perl (--configure): dependency problems - leaving unconfigured D000001: process queue pkg cme:all queue.len 0 progress 1, try 1 dpkg: dependency problems prevent configuration of cme: cme depends on libconfig-model-perl (>= 2.089); however: Package libconfig-model-perl is not configured yet. dpkg: error processing package cme (--configure): dependency problems - leaving unconfigured D000001: cmpversions a='0:2016.03.30' b='0:2016.05.24' r=-2 D000001: cmpversions a='0:1.18.15+nmu1' b='0:1.16' r=2 D000001: cmpversions a='0:1.18.15+nmu1' b='0:1.16' r=2 D000001: cmpversions a='0:1.18.15+nmu1' b='0:1.16' r=2 Errors were encountered while processing: fonts-arphic-uming libconfig-model-perl libconfig-model-dpkg-perl cme So it seems some issue is still there. I'll reboot and see if the issue still persists. -- Regards, Shirish Agarwal शिरीष अग्रवाल My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8