首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Debian 6上安装Linux头

问无法在Debian 6上安装Linux头
EN

Unix & Linux用户
提问于 2013-05-21 11:36:40
回答 1查看 5.1K关注 0票数 0

我不明白为什么这不管用(我很困惑!)

代码语言:javascript
复制
root@box:/home/user# apt-get install linux-headers-2.6.32-5-686
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-2.6.32-5-686 : Depends: gcc-4.3 but it is not going to be installed
E: Broken packages

root@box:/home/user# gcc --version
gcc (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root@node1:/home/user# uname -a
Linux node1 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686 GNU/Linux
root@node1:/home/user# cat /etc/issue
Debian GNU/Linux 6.0 \n \l

我做的任何事情都不会让gcc-4.3安装或者linux-头安装。我对任何想法都持开放态度。

更新

代码语言:javascript
复制
root@box:/home/user# apt-cache policy gcc
apt-cache policy gcc
gcc:
  Installed: 4:4.7.2-1
  Candidate: 4:4.7.2-1
  Version table:
 *** 4:4.7.2-1 0
        100 /var/lib/dpkg/status
     4:4.4.5-1 0
        500 http://ftp.uk.debian.org/debian/ squeeze/main i386 Packages
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2013-05-21 12:01:00

好像你的机器上有一套非标准的软件包。您安装的gcc版本来自testing回购。由于来自gcc的依赖项的更改可能很长,您的计算机上可能有许多来自testing的其他包。

有几件事你可以试试:

  1. 下调了gcc的评级。由于可能的依赖关系,这可能会令人不快。
  2. 确保您正在为安装的内核版本安装linux-headers (请与dpkg -l linux-base检查)。
  3. 对于您所要求的版本不要那么具体。您可以尝试使用linux-headers-2.6-686。
票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/76575

复制
相关文章

相似问题

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