ubuntu升级内核版本
ubuntu升级内核版本

Warning: Trying to access array offset on value of type null in /www/wwwroot/cennum_top/wp-content/themes/bravada/includes/loop.php on line 341

ubuntu升级内核版本

  • 安装步骤

1.下载 ubuntu-mainline-kernel.sh 脚本:

wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh

2.将脚本安装到可执行路径:

sudo install ubuntu-mainline-kernel.sh /usr/local/bin/

3.使用脚本安装最新的主线内核:

sudo ubuntu-mainline-kernel.sh -i

该命令将自动查找并安装最新的主线内核版本。

4.重启系统以使新内核生效:

sudo reboot

5.验证新内核是否安装成功:

uname -r

  • 常见问题

1./tmp/ubuntu-mainline-kernel.sh/ 目录没有写入权限

将脚本移到可写目录(如 /home/username):

mv /tmp/ubuntu-mainline-kernel.sh ~/
cd ~

给予脚本执行权限:

chmod +x ubuntu-mainline-kernel.sh

再次运行脚本进行内核安装:

sudo ./ubuntu-mainline-kernel.sh -i

2.缺少相关的 GPG 密钥

i动下载并安装内核 PPA 密钥

直接从 Ubuntu 官方下载内核 PPA 的 GPG 密钥

wget -qO - https://packages.kernel.org/keys/kernel-ppa.asc | sudo tee /etc/apt/trusted.gpg.d/kernel-ppa.asc

ii更新内核源列表

添加 PPA 源并确保签名验证:

编辑文件 /etc/apt/sources.list.d/ubuntu-mainline-kernel.list

sudo nano /etc/apt/sources.list.d/ubuntu-mainline-kernel.list

然后确保文件内容如下(如果文件不存在,手动创建):

deb http://kernel.ubuntu.com/~kernel-ppa/mainline/ubuntu/ mainline mainline

iii运行内核安装脚本

sudo ./ubuntu-mainline-kernel.sh -i

2条评论

  1. This is the right webpage for anybody who hopes to find out about this topic.
    You realize so much its almost hard to argue with you (not that I actually
    will need to…HaHa). You certainly put a brand new spin on a subject that’s been discussed for a long time.
    Excellent stuff, just excellent!

    1. Thank you so much!HaHa, your comment made my day! Appreciate the kind words. This means a lot coming from a reader who really gets my point! If you ever have topics you‘d like to see explored, feel free to suggest. 🙌

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注