无法进行menuconfig

Val*_*lov 7 linux ubuntu debian kernel upgrade

我使用的是Debian 7.4 Wheezy.我试图升级我的内核,但当我输入"make menuconfig"时它说:

 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
Run Code Online (Sandbox Code Playgroud)

我试图安装"libncurses5-dev",但是我得到了错误:

E: Unable to locate package libncurses5-dev
Run Code Online (Sandbox Code Playgroud)

PS

我手动下载并安装了软件包,现在一切正常!非常感谢!!

Bas*_*tch 7

你应该跑(以root身份)

aptitude update
aptitude search libncurses
Run Code Online (Sandbox Code Playgroud)

这会建议你正确的包名.

然后试试

aptitude install libncurses-dev
Run Code Online (Sandbox Code Playgroud)

aptitude install kernel-package
aptitude build-dep linux-image linux-image-amd64 
Run Code Online (Sandbox Code Playgroud)

最后,用于make-kpkg --initrd binary编译内核.(它将*.deb在父目录中生成文件).你想配置/etc/kernel-pkg.conf,也许/etc/kernel-img.conf