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 * 10000 + 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)

Reply via email to