当前位置:首页 » 神目笔记 » 正文

debian更换内核(最简单的一键脚本)

2963 人参与  2019年12月16日 17:10  分类 : 神目笔记  评论

用这种不是最新的,但是可以更换比较新的内核,比如我刚刚换了4.19的,事实上现在官网最新的是4.20的。

1,设置源(stretch-backports)

guoyanzhang@bogon:~$ sudo cat /etc/apt/sources.list
[sudo] guoyanzhang 的密码:
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib

2,更新源文件

guoyanzhang@bogon:~$ sudo apt-get update

3,搜索内核

guoyanzhang@bogon:~$ apt-cache search linux-image

这个时候会出现很多,我选的是

linux-image-4.19.0-0.bpo.1-amd64 - Linux 4.19 for 64-bit PCs (signed)

4,安装

guoyanzhang@bogon:~$ sudo apt-get install linux-image-4.19.0-0.bpo.1-amd64

5,卸载原来的内核

guoyanzhang@bogon:~$ sudo apt-get remove linux-image-4.9.0-8-amd64

打linux-image然后tab会自动出来几个内核的,选原来的删除就是了,这个时候会跳出一个窗口,选N就行。

6,重启

guoyanzhang@bogon:~$ uname -r
4.19.0-0.bpo.1-amd64

linux-image-4.19.0-0.bpo.1-amd64 - Linux 4.19 for 64-bit PCs (signed)

参考:https://www.cmsky.com/debian-upgrade-kernel/

版权声明 1. 文章编辑:神目网
2. 本站网址:https://www.sxlog.com
3. 注意:本站所有内容未经允许禁止转载!
4. 所有权:神目网保留对本站的所有权,包括但不限于修改、删除、更新网站内容等。

本文链接:https://www.sxlog.com/post/1066.html

商务合作 - Email:admin@sxlog.com

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

随心网公众号

       

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

网站分类

最近发表

标签列表

支付宝红包

支付宝扫码领红包

友情链接

全球主机交流中心

本站支持IPv6访问 本站支持SSL安全访问

可信网站

神目 网站统计 | 网站地图 | 版权声明 | 关于本站

Copyright © 2015-2024 神目网 All Rights Reserved.

随心网公众号 ×