呵呵
分类: LINUX
2011-11-30 21:28:16
ubuntu9.10内核配置时对于无法找到软件包 libncurses5-dev的解决方法小结 本人在调试飞凌ok6410开发板时,使用的linux操作系统是2.6.28版本的,在搭建开发环境时,出现了一些问题,查阅了一些资料最终解决了,现在总结出来,大家如果遇到了类似的问题,可以参考一下。但是这个也是方法之一,肯定还有别的方法啊。 在ubuntu中配置内核中,需要安装‘libncurses5’,以方便使用‘make menuconfig’ 命令,可以采用以下命令行来安装(这个步骤需要pc 可以连接互联网): #sudo apt-get install libncurses5-dev 当执行完这条命令后可能就会出现一下的问题: root@flower-desktop:/# sudo apt-get install libncurses5-dev 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 E: 无法找到软件包 libncurses5-dev 解决方法有以下: 1.进入终端,获取root命令 2.写命令sudo gedit /etc/apt/sources.list 3.将里面的内容全部删除用下面的源进行代替: # # deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Daily Build i386 (20070407)]/ hardy main restricted #deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Daily Build i386 (20070407)]/ hardy main restricted # See for how to upgrade to # newer versions of the distribution. deb hardy main restricted deb-src hardy main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb hardy-updates main restricted deb-src hardy-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. deb hardy universe deb-src hardy universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb hardy multiverse deb-src hardy multiverse ## Uncomment the following two lines to add software from the 'backports' ## repository. ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. # deb hardy-backports main restricted universe multiverse # deb-src hardy-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu hardy-security main restricted #deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted deb http://security.ubuntu.com/ubuntu hardy-security universe #deb-src http://security.ubuntu.com/ubuntu hardy-security universe deb http://security.ubuntu.com/ubuntu hardy-security multiverse #deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse deb hardy main restricted universe multiverse deb hardy-security main restricted universe multiverse deb hardy-updates main restricted universe multiverse deb hardy-backports main restricted universe multiverse #deb-src hardy main restricted universe multiverse #deb-src hardy-security main restricted universe multiverse #deb-src hardy-updates main restricted universe multiverse #deb-src hardy-backports main restricted universe multiverse deb hardy main restricted universe multiverse deb hardy-security main restricted universe multiverse deb hardy-updates main restricted universe multiverse deb hardy-proposed main restricted universe multiverse deb hardy-backports main restricted universe multiverse #deb-src hardy main restricted universe multiverse #deb-src hardy-security main restricted universe multiverse #deb-src hardy-updates main restricted universe multiverse #deb-src hardy-proposed main restricted universe multiverse #deb-src hardy-backports main restricted universe multiverse ## debian.ustc.edu.cn/ubuntu/ mirror from archive.ubuntu.com # deb hardy main restricted universe multiverse deb hardy-backports restricted universe multiverse deb hardy-proposed main restricted universe multiverse deb hardy-security main restricted universe multiverse deb hardy-updates main restricted universe multiverse # #deb-src hardy main restricted universe multiverse #deb-src hardy-backports main restricted universe multiverse #deb-src hardy-proposed main restricted universe multiverse #deb-src hardy-security main restricted universe multiverse #deb-src hardy-updates main restricted universe multiverse # ## sjtu #deb hardy main restricted universe multiverse #deb hardy-backports restricted universe multiverse #deb hardy-proposed main restricted universe multiverse #deb hardy-security main restricted universe multiverse #deb hardy-updates main restricted universe multiverse ## #deb-src hardy main restricted universe multiverse #deb-src hardy-backports main restricted universe multiverse #deb-src hardy-proposed main restricted universe multiverse #deb-src hardy-security main restricted universe multiverse #deb-src hardy-updates main restricted universe multiverse # # openware@bupt #hardy #deb hardy main multiverse restricted universe #deb hardy-backports main multiverse restricted universe #deb hardy-proposed main multiverse restricted universe #deb hardy-security main multiverse restricted universe #deb hardy-updates main multiverse restricted universe # 4.apt-get update 5.apt-get upgrade 6.aptitude linbcurses5-dev |