Debian 9 升级最新版内核

技术教程 风为裳 7浏览 0评论 繁體

Debian 是完全由自由软件组成的类UNIX操作系统,其包含的多数软件使用GNU通用公共许可协议授权,并由Debian计划的参与者组成团队对其进行打包、开发与维护。

修改/etc/apt/sources.list,替换成完整官方源。

deb http://ftp.us.debian.org/debian/ stretch main non-free contrib
deb http://ftp.us.debian.org/debian/ stretch-proposed-updates main non-free contrib
deb-src http://ftp.us.debian.org/debian/ stretch main non-free contrib
deb-src http://ftp.us.debian.org/debian/ stretch-proposed-updates main non-free contrib
deb http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free
deb http://security.debian.org/ stretch/updates main
deb-src http://security.debian.org/ stretch/updates main

 

执行更新软件包

apt-get update
 
apt-get dist-upgrade

 

查看目前可用内核列表

[email protected]:~# apt-cache search linux-image
 
linux-headers-4.9.0-7-amd64 - Header files for Linux 4.9.0-7-amd64
linux-headers-4.9.0-7-rt-amd64 - Header files for Linux 4.9.0-7-rt-amd64
linux-image-4.9.0-7-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-7-amd64-dbg - Debug symbols for linux-image-4.9.0-7-amd64
linux-image-4.9.0-7-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-7-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-7-rt-amd64
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-image-rt-amd64-dbg - Debugging symbols for Linux rt-amd64 configuration (meta-package)
linux-headers-4.9.0-8-amd64 - Header files for Linux 4.9.0-8-amd64
linux-headers-4.9.0-8-rt-amd64 - Header files for Linux 4.9.0-8-rt-amd64
linux-image-4.9.0-8-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-8-amd64-dbg - Debug symbols for linux-image-4.9.0-8-amd64
linux-image-4.9.0-8-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-8-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-8-rt-amd64
linux-headers-4.17.0-0.bpo.1-amd64 - Header files for Linux 4.17.0-0.bpo.1-amd64
linux-headers-4.17.0-0.bpo.1-cloud-amd64 - Header files for Linux 4.17.0-0.bpo.1-cloud-amd64
linux-headers-4.17.0-0.bpo.3-amd64 - Header files for Linux 4.17.0-0.bpo.3-amd64
linux-headers-4.17.0-0.bpo.3-cloud-amd64 - Header files for Linux 4.17.0-0.bpo.3-cloud-amd64
linux-headers-4.18.0-0.bpo.1-amd64 - Header files for Linux 4.18.0-0.bpo.1-amd64
linux-headers-4.18.0-0.bpo.1-cloud-amd64 - Header files for Linux 4.18.0-0.bpo.1-cloud-amd64
linux-headers-4.18.0-0.bpo.1-rt-amd64 - Header files for Linux 4.18.0-0.bpo.1-rt-amd64
linux-image-4.17.0-0.bpo.1-amd64 - Linux 4.17 for 64-bit PCs
linux-image-4.17.0-0.bpo.1-amd64-dbg - Debug symbols for linux-image-4.17.0-0.bpo.1-amd64
linux-image-4.17.0-0.bpo.1-cloud-amd64 - Linux 4.17 for x86-64 cloud
linux-image-4.17.0-0.bpo.1-cloud-amd64-dbg - Debug symbols for linux-image-4.17.0-0.bpo.1-cloud-amd64
linux-image-4.17.0-0.bpo.3-amd64 - Linux 4.17 for 64-bit PCs
linux-image-4.17.0-0.bpo.3-amd64-dbg - Debug symbols for linux-image-4.17.0-0.bpo.3-amd64
linux-image-4.17.0-0.bpo.3-cloud-amd64 - Linux 4.17 for x86-64 cloud
linux-image-4.17.0-0.bpo.3-cloud-amd64-dbg - Debug symbols for linux-image-4.17.0-0.bpo.3-cloud-amd64
linux-image-4.18.0-0.bpo.1-amd64 - Linux 4.18 for 64-bit PCs
linux-image-4.18.0-0.bpo.1-amd64-dbg - Debug symbols for linux-image-4.18.0-0.bpo.1-amd64
linux-image-4.18.0-0.bpo.1-cloud-amd64 - Linux 4.18 for x86-64 cloud
linux-image-4.18.0-0.bpo.1-cloud-amd64-dbg - Debug symbols for linux-image-4.18.0-0.bpo.1-cloud-amd64
linux-image-4.18.0-0.bpo.1-rt-amd64 - Linux 4.18 for 64-bit PCs, PREEMPT_RT
linux-image-4.18.0-0.bpo.1-rt-amd64-dbg - Debug symbols for linux-image-4.18.0-0.bpo.1-rt-amd64
linux-headers-4.9.0-4-grsec-amd64 - Header files for Linux 4.9.0-4-grsec-amd64
linux-image-4.9.0-4-grsec-amd64 - Linux 4.9 for 64-bit PCs, Grsecurity protection (unofficial patch)
linux-image-grsec-amd64 - Linux image meta-package, grsec featureset
linux-image-cloud-amd64 - Linux for x86-64 cloud (meta-package)
linux-image-cloud-amd64-dbg - Debugging symbols for Linux cloud-amd64 configuration (meta-package)
linux-headers-4.9.0-3-amd64 - Header files for Linux 4.9.0-3-amd64
linux-headers-4.9.0-3-rt-amd64 - Header files for Linux 4.9.0-3-rt-amd64
linux-headers-4.9.0-4-amd64 - Header files for Linux 4.9.0-4-amd64
linux-headers-4.9.0-4-rt-amd64 - Header files for Linux 4.9.0-4-rt-amd64
linux-headers-4.9.0-5-amd64 - Header files for Linux 4.9.0-5-amd64
linux-headers-4.9.0-5-rt-amd64 - Header files for Linux 4.9.0-5-rt-amd64
linux-headers-4.9.0-6-amd64 - Header files for Linux 4.9.0-6-amd64
linux-headers-4.9.0-6-rt-amd64 - Header files for Linux 4.9.0-6-rt-amd64
linux-image-4.9.0-3-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-3-amd64-dbg - Debug symbols for linux-image-4.9.0-3-amd64
linux-image-4.9.0-3-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-3-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-3-rt-amd64
linux-image-4.9.0-4-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-4-amd64-dbg - Debug symbols for linux-image-4.9.0-4-amd64
linux-image-4.9.0-4-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-4-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-4-rt-amd64
linux-image-4.9.0-5-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-5-amd64-dbg - Debug symbols for linux-image-4.9.0-5-amd64
linux-image-4.9.0-5-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-5-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-5-rt-amd64
linux-image-4.9.0-6-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-6-amd64-dbg - Debug symbols for linux-image-4.9.0-6-amd64
linux-image-4.9.0-6-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-6-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-6-rt-amd64

 

安装最新版内核

apt-get install -t stretch-backports linux-image-amd64

 

重新生成GRUB的启动菜单配置文件后,释放空间,并重启。

update-grub
 
apt-get clean
 
reboot

 

重启查看内核版本。

[email protected]:~# uname -r
 
4.18.0-0.bpo.1-amd64

 

清除旧内核(非必须)

apt purge linux-image-4.9.0-7-amd64

 

转载请注明:风为裳 » Debian 9 升级最新版内核

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址