跟各位請教一下,我從網路上抓了Debian的ISO image(debian-40r3-i386-CD-1.iso),在我的電腦上安裝,安裝後設定了網路,apt等,然後想試著去build kernel
debian:~# uname -av
Linux debian 2.6.18-6-686 #1 2008 i686 GNU/Linux
結果make menuconfig無法build,出現以下的訊息:
>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'
於是我就用apt-get裝Ncurse:
debian:~# apt-get install ncurses
Reading package lists... Done
Building dependency tree... Done
Package ncurses is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ncurses has no installation candidate
結果找不到,上網查了一下,應該是裝libc6-dev才對,
所以又繼續:
debian:~# apt-get install libc6-dev
Reading package lists... Done
Building dependency tree... 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.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc6-dev: Depends: libc6 (= 2.3.6.ds1-13etch5) but 2.7-10 is to be installed
E: Broken packages
什麼?libc6-dev需要libc6 (= 2.3.6.ds1-13etch5),
但是2.7-10已經裝在我電腦上的?!
假如要裝build-essential的話:
debian:~# apt-get install build-essential
Reading package lists... Done
Building dependency tree... 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.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
build-essential: Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.1.1) but it is not going to be installed
E: Broken packages
這樣又回到原路了,因為libc6-dev又有dependency的問題Orz..
我上google找了好一陣子,一般Ncurses的問題都是把libc6-dev裝了就可以了,只有我這種狀況還不知道怎麼處理比較好...
libc6的這個問題,造成我很多東西都無法正常安裝,不單單只是ncurse而已..
謝謝各位前輩了!