新装了Ubuntu11.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
去安装,但是有一半(大约六个)没法之间安装,所以只有下载包安装,到最后只剩下两个最难惨的包,一个是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!!
转自:http://blog.csdn.net/yanyiyyy/article/details/7036577