[Bug 1962225] Re: preinst check that kernel revision < 255 now does more harm than good

Adam Kaminski 1962225 at bugs.launchpad.net
Fri Apr 22 13:06:49 UTC 2022


I did some testing and I didn't run into any issues after updating to
the newer libc6 from -proposed. Looks good.


FROM ubuntu:focal
ENV DEBIAN_FRONTEND noninteractive
RUN mv /bin/uname /bin/uname.orig
RUN printf '#!/bin/bash\n\nif [[ "$1" == "-r" ]] ;then\n echo '5.4.277-277'\n exit\nelse\n uname.orig "$@"\nfi' > /bin/uname
RUN chmod 755 /bin/uname
RUN echo "deb http://archive.ubuntu.com/ubuntu/ focal-proposed main" >> /etc/apt/sources.list
RUN apt-get update && apt-get upgrade -y libc6
RUN apt-get install --reinstall libc6

docker build -t ${USER}:focal-libc6 .

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1962225

Title:
  preinst check that kernel revision < 255 now does more harm than good

Status in glibc package in Ubuntu:
  Fix Released
Status in glibc source package in Bionic:
  Confirmed
Status in glibc source package in Focal:
  Fix Committed

Bug description:
  [impact]
  Amazon Linux 2 currently has a kernel with version 4.14.262-200.489.amzn2.x86_64. This causes complaints from libc6's preinst that asserts that the "revision" part of the kernel version is less than 255.

  The significance of the check is much less than it used to be when the
  major part of the kernel version was stuck at 2, so we should follow
  Debian and just drop it.

  [test case]
  Boot an Amazon Linux 2 instance. Install docker. Run an ubuntu container of the series being tested. Run "apt-get update && apt-get install --reinstall libc6" and look for error messages / failures.

  [regression potential]
  It's possible that some binaries run using the "uname26" personality will fail -- but they will already fail with the glibc as currently installed, there's no value in preventing an upgrade.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1962225/+subscriptions




More information about the foundations-bugs mailing list