首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >内核+ libc6发布升级以压缩

内核+ libc6发布升级以压缩
EN

Server Fault用户
提问于 2012-08-17 09:58:09
回答 1查看 2.5K关注 0票数 1

我过去经常运行Debian测试,我已经有两年没有升级或升级了。昨天我犯了个错误尝试.它没有工作(我不记得确切的错误信息),所以我尝试挤压代替。

嗯,软件包被下载并开始安装,但是后来我开始了libc6配置。我通过了关于重新启动服务的菜单,然后得到:

代码语言:javascript
复制
WARNING: this version of the GNU libc requires kernel version
2.6.18 or later. Please upgrade your kernel before installing
glibc.

The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add lenny sources to your /etc/apt/sources.list and run:
  apt-get install -t lenny linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.11.3-3_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.11.3-3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我的内核是一个稍微定制的2.6.11.7 (不是使用Debian包构建的)。总之,我添加了lenny的资料来源(来自archive.debian.org),并尝试

代码语言:javascript
复制
apt-get install -t lenny linux-image-2.6-2-686

但我只想:

代码语言:javascript
复制
The following packages have unmet dependencies:
 libc-bin : Breaks: libc6 (< 2.10) but 2.7-18 is to be installed
 linux-image-2.6.26-2-686 : Depends: initramfs-tools (>= 0.55) but it is not going to be installed or
                                     yaird (>= 0.0.13) but it is not installable or
                                     linux-initramfs-tool
                            Recommends: libc6-i686 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

添加libc6-i686 initramfs-tools是没有帮助的。我尝试了更多的事情,让我感到羞愧的是,我完全不记得了(我认为,地点被移除了)。我尝试手动下载Linux-2.6.35,但在缺少.h文件时发现了make config错误。

请帮帮我!我不想打破我的系统比现在更.

/etc/apt/sources.lst的内容:

代码语言:javascript
复制
deb http://debian.co.il/debian/ squeeze main
deb http://archive.debian.org/debian lenny main contrib non-free
deb-src http://debian.co.il/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb http://security.debian.org/ lenny/updates main

这个Debian论坛线程似乎是相关的,但与不同的版本有关。

更新:按照这里的建议,我现在正在尝试先升级到蚀刻。但是,不幸的是我现在被移除,我得到:

代码语言:javascript
复制
Preconfiguring packages ...
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: 1 expected program not found in PATH or not executable.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
EN

回答 1

Server Fault用户

回答已采纳

发布于 2012-08-17 19:39:40

问题解决了:

  • 很明显我在做一个蚀刻测试。
  • 将apt sources.list设置为指向archives.debian.org上的蚀刻。
  • 必须从archives.debian.org手动获取并安装etch的libc6-dev_2.3.6.ds1-13etch10+b1,从而迫使版本降到apt- get的咽喉。
  • 升级了几次。
  • 将apt sources.list设置为指向archives.debian.org上的lenny。
  • 再升级几次。
  • 必须手动下载libc6 6_2.7-18 libc6 7_i386.deb,并手动将glib.sh复制到其位置
  • 再升级几次。

基本上就是这样。更多的细节和高度紧张的态度与问题有关.

票数 3
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/418538

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档