日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

debian 升级glibc

發布時間:2025/6/17 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 debian 升级glibc 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

原因

wheezy是2.13,編譯android4.4 需要2.14的,報錯如下:

rebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaro/bin/arm-linux-androideabi-gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaro/bin/arm-linux-androideabi-gcc)

?所以需要升級glibc

?

出現問題:

出現這個是因為在/etc/apt/sources.list中沒有添加testing的源
E: The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources

升級步驟:

1 添加163的testing的源
#testing
deb http://mirrors.163.com/debian/ testing contrib main non-free
deb-src http://mirrors.163.com/debian/ testing contrib main non-free


2 刷新源
jb@e3v2:~$ sudo apt-get update

?

3 升級glibc

jb@e3v2:~$ sudo apt-get -t testing install libc6-dev
The following extra packages will be installed:
? libc-dev-bin libc6 libc6:i386 libc6-dev-i386 libc6-i386 libc6-i686:i386
? locales
Suggested packages:
? glibc-doc glibc-doc:i386 locales:i386
The following packages will be upgraded:
? libc-dev-bin libc6 libc6:i386 libc6-dev libc6-dev-i386 libc6-i386
? libc6-i686:i386 locales
8 upgraded, 0 newly installed, 0 to remove and 1320 not upgraded.

安裝過程中會提示有些服務會重啟:



選擇“yes”后

Restarting services possibly affected by the upgrade:
? exim4: restarting...done.
? cron: restarting...done.
? atd: restarting...done.

Services restarted successfully.
Setting up libc6:i386 (2.18-4) ...
Checking for services that may need to be restarted...
Checking init scripts...

Restarting services possibly affected by the upgrade:
? exim4: restarting...done.
? cron: restarting...done.
? atd: restarting...done.

Services restarted successfully.
Setting up locales (2.18-4) ...
Installing new version of config file /etc/locale.alias ...
Generating locales (this might take a while)...
? en_US.UTF-8... done
Generation complete.
(Reading database ... 135658 files and directories currently installed.)
Preparing to replace libc6-i686:i386 2.13-38+deb7u1 (using .../libc6-i686_2.18-4_i386.deb) ...
Unpacking replacement libc6-i686:i386 ...
Setting up libc6-i386 (2.18-4) ...
Setting up libc-dev-bin (2.18-4) ...
Setting up libc6-dev:amd64 (2.18-4) ...
Setting up libc6-dev-i386 (2.18-4) ...
Setting up libc6-i686:i386 (2.18-4) ...

轉載于:https://www.cnblogs.com/vipzrx/p/3599506.html

總結

以上是生活随笔為你收集整理的debian 升级glibc的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。