0

我成功地在我的 ubuntu 15 上重新编译并安装了 linux kernel 4.2.0,出于学习目的,我尝试kernel 4.1.7在我的机器上安装另一个。我按照完全相同的程序重新编译和安装它。我重新编译成功,kernel 4.1.7但是当我安装它并重新启动我的 ubuntu 并检查其中正在运行的内核时,它仍然显示 4.2.0 而不是 4.1.7。

我的第二次安装会出什么问题?

我重新编译和安装两个内核的过程是

 1. downloaded the kernel from kernel.org
 2. made the kernel directory in home and extract kernel.tar.xz there
 3. in terminal go to the kernel directory
 4. run this command sudo apt-get install gcc libncurses5-dev dpkg-dev
 5. make menuconfig
 6. saved the .config file with a different name i-e .config_aa
 7. mv .config_aa .config
 8. make -j 5 KDEB_PKGVERSION=1.RIBALINUX deb-dev
 9. sudo make install
 10. sudo reboot
 11. checked kernel version using uname -r
4

1 回答 1

1

您需要在引导加载程序中选择要加载的内核。在 Ubuntu 上,它通常是 GRUB2(教程)。

一些手册中遗漏了这一步,因为通常打算用较新版本构建内核。安装后,首先排列最新的内核版本,默认加载。

于 2015-09-19T21:00:46.873 回答