Bug#1004861: libc6: dist-upgrade to stable fails kernel version checks on LXC guests
control: fixed -1 libc6/2.31-14 On 2022-02-02 15:33, Olivier Berger wrote: > Package: libc6 > Version: 2.31-13 > Severity: normal > > Dear Maintainer, > > I tried to upgrade from old-stable to stable on an LXC guest running on > an ASUS NAS (underlying "ADM" OS) and got blocked during preinst : > > Preparing to unpack .../libc6_2.31-13+deb11u2_amd64.deb ... > /var/lib/dpkg/tmp.ci/preinst: 105: [: Illegal number: > /var/lib/dpkg/tmp.ci/preinst: 9: /var/lib/dpkg/tmp.ci/preinst: > arithmetic expression: expecting primary: "5 * 1 + 4 * 100 + " > dpkg: error processing archive > /var/cache/apt/archives/libc6_2.31-13+deb11u2_amd64.deb (--unpack): > new libc6:amd64 package pre-installation script subprocess returned > error exit status 2 > Errors were encountered while processing: > /var/cache/apt/archives/libc6_2.31-13+deb11u2_amd64.deb > > It appears a workaround is to create a fake uname script in > /usr/local/bin that will report 5.4.0 (for instance) instead of the > 5.4.x which is returned by uname -r in this Debian guest (why the NAS > maintainers have such numbering of kernels... who knows). > > This was discussed in french on > https://debian-facile.org/viewtopic.php?id=25401 but I though this might > deserve a proper bug report. > > I guess this wouldn't be too hard to fix in the preinst script, but > haven't checked the code. This bug has been accidentally fixed a few months ago in testing/sid [1]. I will see if this change can be included in a stable release. Aurelien [1] https://salsa.debian.org/glibc-team/glibc/-/commit/5452b62ded81132ebedf3db82577de5277479b27 -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://www.aurel32.net
Bug#1004861: libc6: dist-upgrade to stable fails kernel version checks on LXC guests
Package: libc6 Version: 2.31-13 Severity: normal Dear Maintainer, I tried to upgrade from old-stable to stable on an LXC guest running on an ASUS NAS (underlying "ADM" OS) and got blocked during preinst : Preparing to unpack .../libc6_2.31-13+deb11u2_amd64.deb ... /var/lib/dpkg/tmp.ci/preinst: 105: [: Illegal number: /var/lib/dpkg/tmp.ci/preinst: 9: /var/lib/dpkg/tmp.ci/preinst: arithmetic expression: expecting primary: "5 * 1 + 4 * 100 + " dpkg: error processing archive /var/cache/apt/archives/libc6_2.31-13+deb11u2_amd64.deb (--unpack): new libc6:amd64 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/libc6_2.31-13+deb11u2_amd64.deb It appears a workaround is to create a fake uname script in /usr/local/bin that will report 5.4.0 (for instance) instead of the 5.4.x which is returned by uname -r in this Debian guest (why the NAS maintainers have such numbering of kernels... who knows). This was discussed in french on https://debian-facile.org/viewtopic.php?id=25401 but I though this might deserve a proper bug report. I guess this wouldn't be too hard to fix in the preinst script, but haven't checked the code. Dunno which side effects might depend on having .0 in the end, but appart that, the upgrade went smoothless. Hope this helps, -- Olivier BERGER https://www-public.imtbs-tsp.eu/~berger_o/ - OpenPGP 2048R/0xF9EAE3A65819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)