[root@localhost ]# apt -y install linux-headers-4.4.0-186
[root@localhost ]# apt -y install linux-headers-4.4.0-186-generic
[root@localhost ]# apt -y install linux-image-4.4.0-186-generic
[root@localhost ]# apt -y install linux-modules-4.4.0-186-generic
[root@localhost ]# apt -y install linux-modules-extra-4.4.0-186-generic

[root@localhost ]# sed -i 's/GRUB_DEFAULT=0/GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 4.4.0-186-generic"/' /etc/default/grub

[root@localhost ]# update-grub

修改内核并重启之后,发现在加载内核时,等待一会儿直接进入initramfs界面

因为加载内核超时导致无法进入系统,这时重启,长按shift建进入选择内核界面,选择其他内核进入系统,修改/boot/grub/grub.cfg 下的linux   /vmlinuz-4.4.0-186-generic root=/dev/mapper/ubuntu--vg-root ro locale=zh_CN quiet splash $vt_handoff  这一行,最后添加rootdelay=100  ,保存,然后重启

 

修改前

linux   /vmlinuz-4.4.0-186-generic root=/dev/mapper/ubuntu--vg-root ro locale=zh_CN quiet splash $vt_handoff

 

修改后

linux   /vmlinuz-4.4.0-186-generic root=/dev/mapper/ubuntu--vg-root ro locale=zh_CN quiet splash $vt_handoff rootdelay=100

 

保存重启