aws / aws-lambda-python-runtime-interface-client

Apache License 2.0
258 stars 73 forks source link

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. #69

Closed Jun711 closed 2 years ago

Jun711 commented 2 years ago

Hi, my docker image was able to build last week but it fails to build with this error today using the same Dockerfile. I am not really sure how to fix it. Should a specific version of any of the packages be installed?

FROM public.ecr.aws/ubuntu/ubuntu:20.04_stable as build-image

RUN apt-get update && \
  apt-get install -y \
  g++ \
  make \
  cmake \
  unzip \
  libcurl4-openssl-dev \
  python3.9 \ 
  python3-pip

...other parts removed...  
...
Preparing to unpack .../libc6_2.31-0ubuntu9.7_amd64.deb ...
--
363 | ERROR: Your kernel version indicates a revision number
364 | of 255 or greater.  Glibc has a number of built in
365 | assumptions that this revision number is less than 255.
366 | If you\'ve built your own kernel, please make sure that any
367 | custom version numbers are appended to the upstream
368 | kernel number with a dash or some other delimiter.
369 |  
370 | dpkg: error processing archive /var/cache/apt/archives/libc6_2.31-0ubuntu9.7_amd64.deb (--unpack):
371 | new libc6:amd64 package pre-installation script subprocess returned error exit status 1
372 | Errors were encountered while processing:
373 | /var/cache/apt/archives/libc6_2.31-0ubuntu9.7_amd64.deb
374 | E: Sub-process /usr/bin/dpkg returned an error code (1)
375 | The command '/bin/sh -c apt-get update &&   apt-get install -y   g++   make   cmake   unzip   libcurl4-openssl-dev   python3.9   python3-pip' returned a non-zero code: 100
...
nicdoye commented 2 years ago

This has now been fixed in the Ubuntu base image https://bugs.launchpad.net/ubuntu/focal/+source/glibc/+bug/1962225 It was caused by a no-longer-needed check when installing glibc.

Jun711 commented 2 years ago

@nicdoye Thank you!