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 http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ 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 http://us.archive.ubuntu.com/ubuntu/ hardy universe deb-src http://us.archive.ubuntu.com/ubuntu/ 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 http://us.archive.ubuntu.com/ubuntu/ hardy multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ 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 http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ 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 http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multiverse #deb-src http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse #deb-src http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse #deb-src http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse #deb-src http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse #deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse #deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse #deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse #deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse #deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse ## debian.ustc.edu.cn/ubuntu/ mirror from archive.ubuntu.com # deb http://debian.ustc.edu.cn/ubuntu/ hardy main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ hardy-backports restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ hardy-security main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse # #deb-src http://debian.ustc.edu.cn/ubuntu/ hardy main restricted universe multiverse #deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-backports main restricted universe multiverse #deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main restricted universe multiverse #deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-security main restricted universe multiverse #deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse # ## sjtu #deb http://ftp.sjtu.edu.cn/ubuntu/ hardy main restricted universe multiverse #deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports restricted universe multiverse #deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main restricted universe multiverse #deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main restricted universe multiverse #deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse ## #deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy main restricted universe multiverse #deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports main restricted universe multiverse #deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main restricted universe multiverse #deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main restricted universe multiverse #deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main restricted universe multiverse # # openware@bupt #hardy #deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ hardy main multiverse restricted universe #deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ hardy-backports main multiverse restricted universe #deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ hardy-proposed main multiverse restricted universe #deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ hardy-security main multiverse restricted universe #deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ hardy-updates main multiverse restricted universe # 4.apt-get update 5.apt-get upgrade 6.aptitude linbcurses5-dev |