0.查看libc.so.6默认版本 ubuntu 20 X86 : strings /lib/x86_64-linux-gnu/libc.so.6 |grep GLIBC_ ubuntu 20 arm64 : strings /lib/aarch64-linux-gnu/libc.so.6 | grep GLIBC_
1.换源 deb https://mirrors.aliyun.com/ubuntu-ports/ focal main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu-ports/ focal-security main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-security main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu-ports/ focal-updates main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-updates main restricted universe multiverse # deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse # deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu-ports/ focal-backports main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu-ports/ focal-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu-ports/ jammy main 注:重点为deb http://mirrors.aliyun.com/ubuntu-ports/ jammy main源
2.更新源 apt-get update
3.升级libc apt install libc6 升级过程中会出现重启服务的提示,选择默认的yes即可。
4.查看libc.so.6版本 root@ok3588:~# strings /lib/aarch64-linux-gnu/libc.so.6 | grep GLIBC_ GLIBC_2.17 GLIBC_2.18 GLIBC_2.22 GLIBC_2.23 GLIBC_2.24 GLIBC_2.25 GLIBC_2.26 GLIBC_2.27 GLIBC_2.28 GLIBC_2.29 GLIBC_2.30 GLIBC_2.31 GLIBC_2.32 GLIBC_2.33 GLIBC_2.34 GLIBC_2.35 GLIBC_PRIVATE
|