嵌入式爱好者

Ubuntu20升级glibc版本

2024-3-30 08:19| 发布者: hai| 查看: 142| 评论: 0|原作者: hai

类目: 知识库  >  RK3588系列产品     文档编号: 1344

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



已解决

未解决

只是看看

最新评论

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-22 10:22

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部