1. 不能正常启动,如图所示:
2. 使用恢复模式进入
>ubuntu
>advance ubuntu ......
>system setting
3. 选择第二选项进入后如图所示:
4. 选择第二个最新的内核,进入系统,因为第一个是默认系统选择的,而前面启动的时候就出现了异常,不能正常进入,所以要选择另外的。(有无 recovery mode 是一样的)
5. 列出正在使用的内核
$ uname -ar
Linux icil-OptiPlex-7040 3.19.0-61-generic #69~14.04.1-Ubuntu SMP Thu Jun 9 09:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
6. 列出所有的内核
$ sudo update-grub
[sudo] password for peterwong:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.19.0-61-generic
Found initrd image: /boot/initrd.img-3.19.0-61-generic
Found linux image: /boot/vmlinuz-3.19.0-25-generic
Found initrd image: /boot/initrd.img-3.19.0-25-generic
Found linux image: /boot/vmlinuz-3.13.0-119-generic
Found initrd image: /boot/initrd.img-3.13.0-119-generic
Adding boot menu entry for EFI firmware configuration
done
7. 列出所有的内核包
$ dpkg -l | grep linux
ii libselinux1:amd64 2.2.2-1ubuntu0.1 amd64 SELinux runtime shared libraries
ii libselinux1:i386 2.2.2-1ubuntu0.1 i386 SELinux runtime shared libraries
ii libv4l-0:amd64 1.0.1-1 amd64 Collection of video4linux support libraries
ii libv4l-0:i386 1.0.1-1 i386 Collection of video4linux support libraries
ii libv4lconvert0:amd64 1.0.1-1 amd64 Video4linux frame format conversion library
ii libv4lconvert0:i386 1.0.1-1 i386 Video4linux frame format conversion library
ii linux-base 4.5ubuntu1~14.04.1 all Linux image base package
ii linux-firmware 1.127.22 all Firmware for Linux kernel drivers
ii linux-generic-lts-vivid 3.19.0.61.44 amd64 Complete Generic Linux kernel and headers
ii linux-headers-3.19.0-25 3.19.0-25.26~14.04.1 all Header files related to Linux kernel version 3.19.0
ii linux-headers-3.19.0-25-generic 3.19.0-25.26~14.04.1 amd64 Linux kernel headers for version 3.19.0 on 64 bit x86 SMP
ii linux-headers-3.19.0-61 3.19.0-61.69~14.04.1 all Header files related to Linux kernel version 3.19.0
ii linux-headers-3.19.0-61-generic 3.19.0-61.69~14.04.1 amd64 Linux kernel headers for version 3.19.0 on 64 bit x86 SMP
ii linux-headers-generic-lts-vivid 3.19.0.61.44 amd64 Generic Linux kernel headers
ii linux-image-3.13.0-119-generic 3.13.0-119.166 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.19.0-25-generic 3.19.0-25.26~14.04.1 amd64 Linux kernel image for version 3.19.0 on 64 bit x86 SMP
ii linux-image-3.19.0-61-generic 3.19.0-61.69~14.04.1 amd64 Linux kernel image for version 3.19.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-119-generic 3.13.0-119.166 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.19.0-25-generic 3.19.0-25.26~14.04.1 amd64 Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
ii linux-image-extra-3.19.0-61-generic 3.19.0-61.69~14.04.1 amd64 Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
ii linux-image-extra-virtual 3.13.0.119.129 amd64 Transitional package.
ii linux-image-generic 3.13.0.119.129 amd64 Generic Linux kernel image
ii linux-image-generic-lts-vivid 3.19.0.61.44 amd64 Generic Linux kernel image
ii linux-libc-dev:amd64 3.13.0-91.138 amd64 Linux Kernel Headers for development
ii linux-modules-4.4.0-146-generic 4.4.0-146.172~14.04.1 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-modules-extra-4.4.0-146-generic 4.4.0-146.172~14.04.1 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-signed-generic-lts-vivid 3.19.0.61.44 amd64 Complete Signed Generic Linux kernel and headers
ii linux-signed-image-3.19.0-61-generic 3.19.0-61.69~14.04.1 amd64 Signed kernel image generic
ii linux-signed-image-generic-lts-vivid 3.19.0.61.44 amd64 Signed Generic Linux kernel image
ii linux-sound-base 1.0.25+dfsg-0ubuntu4 all base package for ALSA and OSS sound systems
ii pptp-linux 1.7.2-7 amd64 Point-to-Point Tunneling Protocol (PPTP) Client
ii skypeforlinux 8.10.0.4 amd64 Skype keeps the world talking, for free.
ii syslinux 3:4.05+dfsg-6+deb8u1 amd64 collection of boot loaders
ii syslinux-common 3:4.05+dfsg-6+deb8u1 all collection of boot loaders (common files)
ii syslinux-legacy 2:3.63+dfsg-2ubuntu5 amd64 Bootloader for Linux/i386 using MS-DOS floppies
ii util-linux 2.20.1-5.1ubuntu20.9 amd64 Miscellaneous system utilities
8. 删除异常的内核包
sudo apt-get purge linux-image-4.4.0-146-generic
sudo apt-get purge linux-headers-4.4.0-146
9. 重启电脑,检查是否能正常重启