【已解决】升级到了乌班图20版本,怎么把内核从5.11降到5.8?

升级到了乌班图20版本,怎么把内核从5.11降到5.8?

问:Ubuntu系统内核5.4升级内核到5.8?

cd ~
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8/amd64/linux-headers-5.8.0-050800_5.8.0-050800.202008022230_all.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8/amd64/linux-headers-5.8.0-050800-generic_5.8.0-050800.202008022230_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8/amd64/linux-image-unsigned-5.8.0-050800-generic_5.8.0-050800.202008022230_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8/amd64/linux-modules-5.8.0-050800-generic_5.8.0-050800.202008022230_amd64.deb
sudo dpkg -i *.deb
uname -sr

2 Likes

70-HD3:~$ sudo dpkg -i *.deb
(正在读取数据库 … 系统当前共安装有 197853 个文件和目录。)
准备解压 linux-headers-5.8.0-050800_5.8.0-050800.202008022230_all.deb …
正在解压 linux-headers-5.8.0-050800 (5.8.0-050800.202008022230) 并覆盖 (5.8.0-050800.202008022230) …
准备解压 linux-headers-5.8.0-050800-generic_5.8.0-050800.202008022230_amd64.deb …
正在解压 linux-headers-5.8.0-050800-generic (5.8.0-050800.202008022230) 并覆盖 (5.8.0-050800.202008022230) …
准备解压 linux-image-unsigned-5.8.0-050800-generic_5.8.0-050800.202008022230_amd64.deb …
正在解压 linux-image-unsigned-5.8.0-050800-generic (5.8.0-050800.202008022230) 并覆盖 (5.8.0-050800.202008022230) …
/var/lib/dpkg/info/linux-image-unsigned-5.8.0-050800-generic.postrm … removing pending trigger
准备解压 linux-modules-5.8.0-050800-generic_5.8.0-050800.202008022230_amd64.deb …
正在解压 linux-modules-5.8.0-050800-generic (5.8.0-050800.202008022230) 并覆盖 (5.8.0-050800.202008022230) …
正在设置 linux-headers-5.8.0-050800 (5.8.0-050800.202008022230) …
正在设置 linux-headers-5.8.0-050800-generic (5.8.0-050800.202008022230) …
/etc/kernel/header_postinst.d/dkms:

  • dkms: running auto installation service for kernel 5.8.0-050800-generic
    Error! Could not locate dkms.conf file.
    File: /var/lib/dkms/sgx/1.41/source/dkms.conf does not exist.
    …fail!
    run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
    dpkg: 处理软件包 linux-headers-5.8.0-050800-generic (–install)时出错:
    已安装 linux-headers-5.8.0-050800-generic 软件包 post-installation 脚本 子进程返回错误状态 1
    正在设置 linux-modules-5.8.0-050800-generic (5.8.0-050800.202008022230) …
    正在设置 linux-image-unsigned-5.8.0-050800-generic (5.8.0-050800.202008022230) …
    正在处理用于 linux-image-unsigned-5.8.0-050800-generic (5.8.0-050800.202008022230) 的触发器 …
    /etc/kernel/postinst.d/dkms:
  • dkms: running auto installation service for kernel 5.8.0-050800-generic
    Error! Could not locate dkms.conf file.
    File: /var/lib/dkms/sgx/1.41/source/dkms.conf does not exist.
    …fail!
    run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
    dpkg: 处理软件包 linux-image-unsigned-5.8.0-050800-generic (–install)时出错:
    已安装 linux-image-unsigned-5.8.0-050800-generic 软件包 post-installation 脚本 子进程返回错误状态 1
    在处理时有错误发生:
    linux-headers-5.8.0-050800-generic
    linux-image-unsigned-5.8.0-050800-generic

请问升级报错怎么办??