如何在 Debian 上将 glibc 从版本 2.13 升级到 2.15? [英] How to upgrade glibc from version 2.13 to 2.15 on Debian?
问题描述
我听说我可以使用 apt-get install libc6 做到这一点,但我需要在/etc/apt/sources.list 中添加一些内容以接收最新的 glibc 版本.我该怎么办?
I heard I can do it using apt-get install libc6, but I need to add something to /etc/apt/sources.list to receive the newest glibc version. What should I do?
推荐答案
通过编辑 Debian Wheezy 中安装 libc6 2.17
"https://stackoverflow.com/a/15766756/945863">错误答案:
I was able to install libc6 2.17
in Debian Wheezy
by editing the recommendations in perror's answer:
重要
您需要按 CTRL-ALT-F1 退出显示管理器.然后你可以用 sudo/etc/init.d/slim stop
IMPORTANT
You need to exit out of your display manager by pressing CTRL-ALT-F1.
Then you can stop x (slim
) with sudo /etc/init.d/slim stop
(将 slim 替换为 mdm
或 lightdm
或其他)
(replace slim with mdm
or lightdm
or whatever)
将以下行添加到文件/etc/apt/sources.list
:
deb http://ftp.debian.org/debian 实验主要
应改为:
deb http://ftp.debian.org/debian sid main
deb http://ftp.debian.org/debian sid main
然后关注 perror 的其余帖子:
Then follow the rest of perror's post:
更新您的包裹数据库:
apt-get 更新
安装eglibc
包:
apt-get -t sid install libc6-amd64 libc6-dev libc6-dbg
apt-get -t sid install libc6-amd64 libc6-dev libc6-dbg
重要
更新完libc6
后,重启电脑,注释掉或删除刚才添加的sid源码(deb http://ftp.debian.org/debian sid main
),否则您可能会将整个发行版升级到 sid.
IMPORTANT
After done updating libc6
, restart computer, and you should comment out or remove the sid source you just added (deb http://ftp.debian.org/debian sid main
), or else you risk upgrading your whole distro to sid.
希望这会有所帮助.我花了一段时间才弄清楚.
Hope this helps. It took me a while to figure out.
这篇关于如何在 Debian 上将 glibc 从版本 2.13 升级到 2.15?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!