如何删除新内核并恢复旧内核默认设置(16.04)

如何删除新内核并恢复旧内核默认设置(16.04)

我将内核升级到 4.4.8 版本,尝试启用挂起/休眠,但结果却缩短了电池寿命。因此我想

A. 在我的 Ubuntu 16.04 LTS 中删除 je 4.4.8 并恢复到 4.4.0 内核

b.保留新内核,但将旧内核(4.4.0)设为默认启动内核。

我对此有点缺乏经验,所以我希望了解步骤和提示:)

此外,我是否应该继续使用已发布的内核并等待系统的修复和更新,还是应该根据需要升级内核。有什么建议?

dpkg -l | grep linux 的输出

ii  console-setup-linux                           1.108ubuntu15                                       all          Linux specific part of console-setup
ii  ladspa-sdk                                    1.13-2                                              amd64        sample tools for linux-audio-dev plugin architecture
ii  libselinux1:amd64                             2.4-3build2                                         amd64        SELinux runtime shared libraries
ii  libselinux1:i386                              2.4-3build2                                         i386         SELinux runtime shared libraries
ii  libv4l-0:amd64                                1.10.0-1                                            amd64        Collection of video4linux support libraries
ii  libv4lconvert0:amd64                          1.10.0-1                                            amd64        Video4linux frame format conversion library
ii  linux-base                                    4.0ubuntu1                                          all          Linux image base package
ii  linux-firmware                                1.157                                               all          Firmware for Linux kernel drivers
ii  linux-generic                                 4.4.0.21.22                                         **amd64        Complete Generic Linux kernel and headers
ii  linux-headers-4.4.0-21                        4.4.0-21.37                                         all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-21-generic                4.4.0-21.37                                         amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP**
ii  linux-headers-4.4.8-040408                    4.4.8-040408.201604200335                           all          Header files related to Linux kernel version 4.4.8
ii  linux-headers-4.4.8-040408-generic            4.4.8-040408.201604200335                           amd64        Linux kernel headers for version 4.4.8 on 64 bit x86 SMP
ii  linux-headers-generic                         4.4.0.21.22                                         amd64        Generic Linux kernel headers
ii  linux-image-4.4.0-21-generic                  4.4.0-21.37                                         amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.8-040408-generic              4.4.8-040408.201604200335                           amd64        Linux kernel image for version 4.4.8 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-21-generic            4.4.0-21.37                                         amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-generic                           4.4.0.21.22                                         amd64        Generic Linux kernel image
ii  linux-libc-dev:amd64                          4.4.0-21.37                                         amd64        Linux Kernel Headers for development
ii  linux-sound-base                              1.0.25+dfsg-0ubuntu5                                all          base package for ALSA and OSS sound systems
ii  linux-tools-4.4.0-21                          4.4.0-21.37                                         amd64        Linux kernel version specific tools for version 4.4.0-21
ii  linux-tools-4.4.0-21-generic                  4.4.0-21.37                                         amd64        Linux kernel version specific tools for version 4.4.0-21
ii  linux-tools-common                            4.4.0-21.37                                         all          Linux kernel version specific tools for version 4.4.0
ii  linux-tools-virtual                           4.4.0.21.22                                         amd64        This package will always depend on the latest minimal generic kernel tools.
ii  pptp-linux                                    1.8.0-1                                             amd64        Point-to-Point Tunneling Protocol (PPTP) Client
ii  syslinux                                      3:6.03+dfsg-11ubuntu1                               amd64        collection of bootloaders (DOS FAT and NTFS bootloader)
ii  syslinux-common                               3:6.03+dfsg-11ubuntu1                               all          collection of bootloaders (common)
ii  syslinux-legacy                               2:3.63+dfsg-2ubuntu8                                amd64        Bootloader for Linux/i386 using MS-DOS floppies
ii  util-linux                                    2.27.1-6ubuntu3                                     amd64        miscellaneous system utilities

答案1

重新启动计算机,当 BIOS 完成后,快速按下shift以打开 GRUB 菜单,您可能需要尝试几次才能获得正确的时间。

选择高级选项并选择使用旧内核启动。然后,您可以安全地卸载新内核的所有内容并完成它:

sudo apt-get remove "linux-headers-4.4.8*"
sudo apt-get remove "linux-image-4.4.8*"

相关内容