Debian Stretch升级当前最新稳定版内核

Why update kernel ?

Update the kernel to new version fixed some newer hardware has no driver software, For me, My earphone has current noice. Someone tell me that is low version kernel trouble. So I search for some article and summary useful things , then I wrote this blog.

Update Linux Kernel Cookbook

Before installing a newer kernel, it’s important that we upgrade installed packages to their newer versions in the backports-repo in order to be sure that dependencies will remain unbroken.

$ sudo apt-get -t stretch-backports upgrade

After the upgrade, choose a kernel from the list and install it with apt.

$ sudo apt-cache search linux-image

Most of the installations would want the kernel without suffix. The rt-suffix stands for realtime and is mostly interesting for embedded projects or machines that will drive industrial hardware. dbg stands for debugging.

Here we chose linux-image-4.19.0-0.bpo.5-amd64 and linux-headers-4.19.0-0.bpo.5-amd64, the newest after 2019-05-18

$ sudo apt-get -t stretch-backports install linux-image-4.19.0-0.bpo.5-amd64 linux-headers-4.19.0-0.bpo.5-amd64

After the installation, reboot your system and select the newly installed kernel from the selection displayed in GRUB. Debian selects the new kernel by default.

Uninstall Linux Kernel on Debain

To check which kernels are currently installed:

$ dpkg --get-selections|grep linux-image
linux-image-4.19.0-0.bpo.5-amd64 install
linux-image-4.9.0-9-amd64 install
linux-image-amd64 install

Uninstall the old one:

$ sudo apt-get remove linux-image-4.9.0-9-amd64

That should be all it takes in order to install a recent kernel and cleanup older kernels on a Debian system. Not so difficult as you thought probably 😃

Reference:
http://jensd.be/818/linux/install-a-newer-kernel-in-debian-9-stretch-stable
https://kantor.vivaldi.net/?p=92

posted @   东北小狐狸  阅读(3130)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2018-06-11 【简记】前端对接WebSocket与心跳重连
点击右上角即可分享
微信分享提示