建立Debian環境的問題(ncurses)

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

建立Debian環境的問題(ncurses)

文章Eason » 週一 6月 30, 2008 4:06 pm

跟各位請教一下,我從網路上抓了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而已..

謝謝各位前輩了!
Eason
可愛的小學生
可愛的小學生
 
文章: 2
註冊時間: 週一 6月 30, 2008 3:19 pm

文章Eason » 週四 7月 03, 2008 3:30 pm

自問自答...

重裝後,apt-get的source list只用debian US,台灣的都拿掉,
重新裝需要的tool,然後問題就自然的解了..
連同原本GCC有問題等,都完全正常了!

我裝的程序都是固定的,不知道是不是台灣的mirror site是不是有問題...
Eason
可愛的小學生
可愛的小學生
 
文章: 2
註冊時間: 週一 6月 30, 2008 3:19 pm

文章訪客 » 週四 7月 03, 2008 6:31 pm

我習慣設三個 mirror


訪客
 


回到 debian misc

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客