Skip to content

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

@Jun711

Description

@Jun711

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions