Debian 安装主线稳定版内核

Debian 安装主线稳定版内核

我所使用的VPS环境为

  • Virtualization: KVM
  • CPUs: 1
  • Memory: 128MB
  • Swap: 128MB
  • Disk Space: 10GB
  • OS Template: Debian 8.0 x86_64 Minimal

我所使用的操作系统为 Debain 系的 Debian 8,可使用 Ubuntu仓库里的预编译内核,关于内核的最新发布信息可在 ⌈ 这里 ⌋ 查看


 

1. 下载预编译内核包

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.3/linux-image-4.10.3-041003-generic_4.10.3-041003.201703142331_amd64.deb

 

2. 安装主线稳定版内核

dpkg -i linux-image-4.10.3-041003-generic_4.10.3-041003.201703142331_amd64.deb

 

3. 列出已安装的内核

dpkg -l|grep linux-image | awk '{print $2}'

linux-image-3.16.0-4-amd64
linux-image-4.10.3-041003-generic
linux-image-amd64

 

4. 移除多余内核

移除 linux-image-3.16.0-4-amd64

apt purge linux-image-3.16.0-4-amd64

由于当前正在使用 3.16.0-4-amd64 内核,将出现以下警告,选 <No> 即可

+---------------------------------------| Configuring linux-image-3.16.0-4-amd64 |---------------------------------------+
|                                                                                                                        |
| You are running a kernel (version 3.16.0-4-amd64) and attempting to remove the same version.                           |
|                                                                                                                        |
| This can make the system unbootable as it will remove /boot/vmlinuz-3.16.0-4-amd64 and all modules under the directory |
| /lib/modules/3.16.0-4-amd64. This can only be fixed with a copy of the kernel image and the corresponding modules.     |
|                                                                                                                        |
| It is highly recommended to abort the kernel removal unless you are prepared to fix the system after removal.          |
|                                                                                                                        |
| Abort kernel removal?                                                                                                  |
|                                                                                                                        |
|                                   <Yes>                                        <No>                                    |
|                                                                                                                        |
+------------------------------------------------------------------------------------------------------------------------+

 

移除 linux-image-amd64

apt purge linux-image-amd64

 

5. 更新系统引导

update-grub

 

6. 重启VPS

reboot

 

7. Enjoy it !

 

0 条评论

昵称

沙发空缺中,还不快抢~