skip to Main Content

I just update my ubuntu and its kernel has been updated:

> uname -r
6.8.0-40-generic

Then, I pull a simple image:

docker pull alpine:latest

And I got the following error:

latest: Pulling from library/alpine
c6a83fedfae6: Extracting [==================================================>]  3.623MB/3.623MB
failed to register layer: exit status 22: unpigz: abort: zlib version less than 1.2.3

However, this is the version of zlib:

zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu9.2).

I just downgrade the kernel version to 6.5.x, however the problem is not solved.

what is wrong with new ubuntu update?

2

Answers


  1. Chosen as BEST ANSWER

    I just install the zlib from source and the issue is resolved. For this configuration, I use 1.3.1 version.


  2. This issue of compatibility, Need to install zlib specific version:

    sudo apt-get install zlib1g=1:1.2.11.dfsg-2ubuntu1.5 
    

    You also check other versions:

    apt-cache policy zlib1g
    zlib1g:
      Installed: 1:1.2.11.dfsg-2ubuntu1.5
      Candidate: 1:1.2.11.dfsg-2ubuntu1.5
      Version table:
     *** 1:1.2.11.dfsg-2ubuntu1.5 500
            500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
            500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
            100 /var/lib/dpkg/status
         1:1.2.11.dfsg-2ubuntu1 500
            500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search