ubuntu18.04升级kennel 5.10失败记录 #yyds干货盘点#

Posted 骁珺在努力

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu18.04升级kennel 5.10失败记录 #yyds干货盘点#相关的知识,希望对你有一定的参考价值。

操作记录

# 前提: 完成了apt-get update && apt-get upgrade

root@ln0-189-perftest:~# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.89/amd64/linux-headers-5.10.89-051089-generic_5.10.89-051089.202112291237_amd64.deb
root@ln0-189-perftest:~# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.89/amd64/linux-headers-5.10.89-051089_5.10.89-051089.202112291237_all.deb
root@ln0-189-perftest:~# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.89/amd64/linux-image-unsigned-5.10.89-051089-generic_5.10.89-051089.202112291237_amd64.deb
root@ln0-189-perftest:~# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.89/amd64/linux-modules-5.10.89-051089-generic_5.10.89-051089.202112291237_amd64.deb

root@ln0-189-perftest:~# sudo dpkg -i *.deb
Selecting previously unselected package linux-headers-5.10.89-051089.
...
dpkg: dependency problems prevent configuration of linux-headers-5.10.89-051089-generic:
 linux-headers-5.10.89-051089-generic depends on libc6 (>= 2.33); however:
  Version of libc6:amd64 on system is 2.27-3ubuntu1.4.

# 但重启后uname显示成功了
root@ln0-189-perftest:~# uname -sr
Linux 5.10.89-051089-generic

# 执行apt-get会有报错, 要求--fix-broken install linux-headers-5.10.89-051089-generic包
root@ln0-189-perftest:~# apt-get upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run apt --fix-broken install to correct these.
The following packages have unmet dependencies:
 linux-headers-5.10.89-051089-generic : Depends: libc6 (>= 2.33) but 2.27-3ubuntu1.4 is installed
E: Unmet dependencies. Try apt --fix-broken install with no packages (or specify a solution).

root@ln0-189-perftest:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  linux-headers-5.10.89-051089-generic
0 upgraded, 0 newly installed, 1 to remove and 62 not upgraded.
1 not fully installed or removed.
After this operation, 26.0 MB disk space will be freed.

以上是关于ubuntu18.04升级kennel 5.10失败记录 #yyds干货盘点#的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu升级到18.04

ubuntu17升级到18.04

如何在线将Ubuntu 18.04升级到Ubuntu 20.04

Ubuntu系统升级16.04升级18.04

Ubuntu18.04 升级python3后 安装pip3 后报错

Ubuntu18.04自动升级内核后降级