歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 11.10下ncurses-devel 安裝解決方案小記

Ubuntu 11.10下ncurses-devel 安裝解決方案小記

日期:2017/2/28 16:02:21   编辑:Linux教程

新裝了Ubuntu 11.10,虛擬機用的Oracle VM VirtualBox。為了安裝飛思卡爾的LTIB,中間會出現很多沒有安裝的東西,就用apt-get

去安裝,但是有一半(大約六個)沒法之間安裝,所以只有下載包安裝,到最後只剩下兩個最難慘的包,一個是ncurses-devel ,一個是

glibc-devel,我在網上看到“Ubuntu 下 編譯內核 make menuconfig 時缺少 ncurses-devel 的解決方案sudo apt-get install libncurses5-dev

”,我發現其實是同一個問題。

輸入sudo apt-get install libncurses5-dev過後出現以下問題

Error

E: The package ncurses-devel needs to be reinstalled, but I can’t find an archive for it.

Solution

Run the following command

For ncurses-devel Pakage

dpkg --remove --force-remove-reinstreq ncurses-devel

You can replace ncurses-devel to any of your package name which is giving the error

但是#dpkg --remove --force-remove-reinstreq ncurses-devel過後問題又來啦,當然沒有問題最好不過了,直接搞定。

Error

dpkg: requested operation requires superuser privilege

solution

#dpkg --configure -a

#dpkg --remove --force-remove-reinstreq ncurses-devel

#apt-get install libncurses5-dev

ok!!

Copyright © Linux教程網 All Rights Reserved