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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值