Error on upgrading libc6 in LXC container because of kernel revision number

Have a strange problem in a LXC container on upgrading:

Preparing to unpack .../libc6_2.31-13+deb11u2_armhf.deb ...
ERROR: Your kernel version indicates a revision number
of 255 or greater.  Glibc has a number of built in
assumptions that this revision number is less than 255.
If you\'ve built your own kernel, please make sure that any
custom version numbers are appended to the upstream
kernel number with a dash or some other delimiter.

dpkg: error processing archive /var/cache/apt/archives/libc6_2.31-13+deb11u2_armhf.deb (--unpack):
 new libc6:armhf package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.31-13+deb11u2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

TurrisOS: 5.3.4 974161d7f891cc1a76c390258db2fac59a4d115c / LuCI branch git-22.023.38255-88b4c07 with kernel version: 4.14.262

Revision number with 262 causes the error.

OS in the container is Devuan (Debian fork without SystemD), but should concern all debian based Linux systems!?

Any hints to solve this?

I read

Fixed in version glibc/2.31-14

But you attempt 2.31-13


BTW, this seems in no way specific to Turris or OpenWrt, IMO.

Well, I expect it will suffice to wait until they pull the fix from Debian, or you could try to… talk to them.

See this

https://lore.kernel.org/stable/YVAhOlTsb0NK0BVi@kroah.com/T/

and

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987266

It is not from TurrisOS.

Fix was done already for debian. You need to raise bug for devuan.

Thanks for clarification. Did not think that this is a bug of libc6.

Fixed it by repackaging the deb and changed the DEBIAN/preinst script to if [ "$kernel_rev" -ge 290 ]".

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.