debian 升级glibc
原因
wheezy是2.13,編譯android4.4 需要2.14的,報(bào)錯(cuò)如下:
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)
?所以需要升級(jí)glibc
?
出現(xiàn)問(wèn)題:
出現(xiàn)這個(gè)是因?yàn)樵?etc/apt/sources.list中沒(méi)有添加testing的源
E: The value 'testing' is invalid for APT::Default-Release as such a release is not available in the sources
升級(jí)步驟:
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 升級(jí)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.
安裝過(guò)程中會(huì)提示有些服務(wù)會(huì)重啟:
選擇“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) ...
轉(zhuǎn)載于:https://www.cnblogs.com/vipzrx/p/3599506.html
總結(jié)
以上是生活随笔為你收集整理的debian 升级glibc的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Webbrowers控件的小技巧
- 下一篇: stm32_CAN总线知识