编译Kernel出现问题,经验总结如下:
1、进入linux内核,执行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.
***
apt-get install libncurses
apt-get install libncurses*
来安装libncurses库。
但是出现如下错误:
root@lj:~# sudo apt-get install libncurses
正在读取软件包列表... 有错误!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_oneiric-updates_restricted_binary-i386_Packages
E: 无法解析或打开软件包的列表或是状态文件。
3、百度发现解决方案: http://ihaveapc.com/2011/05/how-to-fix-problem-with-mergelist-varlibaptlists-error-in-ubuntu-11-04/ 输入如下:
4、再次执行: apt-get install libncursesapt-get install libncurses*下载50多兆的包。ok。
5、执行: make menuconfig后。ok。
正在读取软件包列表... 有错误!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_oneiric-updates_restricted_binary-i386_Packages
E: 无法解析或打开软件包的列表或是状态文件。
3、百度发现解决方案: http://ihaveapc.com/2011/05/how-to-fix-problem-with-mergelist-varlibaptlists-error-in-ubuntu-11-04/ 输入如下:
sudo
rm
/var
/lib
/apt
/lists
/*
-vf
sudo
apt-get update
4、再次执行: apt-get install libncursesapt-get install libncurses*下载50多兆的包。ok。
5、执行: make menuconfig后。ok。