/ 中存储网

Ubuntu 11.10下ncurses-devel安装解决方案小记的方法

2015-08-13 11:47:47 来源:中存储网

新装了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!