ncurses-devel 安装解决方案小记

 新装了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
ok!!
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值