Debian 6 に Linux ヘッダーをインストールできません。

Debian 6 に Linux ヘッダーをインストールできません。

なぜこれがうまくいかないのかわかりません(厄介です!)。

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-headersをインストールすることではありません。私はどんなアイデアでも開いています。

修正する

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

ベストアンサー1

コンピュータに非標準パッケージセットがあるようです。インストールするバージョンはリポジトリgccから取得されます。testing依存関係の変更にはgcc時間がかかる可能性があるため、コンピュータにtesting

試すことができるいくつかのタスクは次のとおりです。

  1. ダウンgccグレード これは可能な依存関係のために不快になる可能性があります。
  2. インストールするカーネルのバージョンがすでにインストールlinux-headersされていることを確認してください(確認するには使用dpkg -l linux-base)。
  3. リクエストされたバージョンについてはあまり具体的に説明してください。試してみてくださいlinux-headers-2.6-686

おすすめ記事