我尝试在 Ubuntu 22.04 上将 Linux 内核更新到 6.1.38。从 Ubuntu Kernel 网站下载内核文件并安装后,出现依赖性问题。
dpkg -i linux-headers-6.1.38-060138-generic-64k_6.1.38-060138.202307070815_arm64.deb
输出是
(Reading database ... 102570 files and directories currently installed.)
Preparing to unpack linux-headers-6.1.38-060138-generic-64k_6.1.38-060138.202307070815_arm64.deb ...
Unpacking linux-headers-6.1.38-060138-generic-64k (6.1.38-060138.202307070815) over (6.1.38-060138.202307070815) ...
dpkg: dependency problems prevent configuration of linux-headers-6.1.38-060138-generic-64k:
linux-headers-6.1.38-060138-generic-64k depends on linux-headers-6.1.38-060138; however:
Package linux-headers-6.1.38-060138 is not installed.
dpkg: error processing package linux-headers-6.1.38-060138-generic-64k (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-headers-6.1.38-060138-generic-64k
我尝试使用下面的命令,但没有成功。
apt-get update
apt-get upgrade
apt-get install linux-headers-6.1.38-060138
下面的解决方案也不起作用。
apt-get install linux-headers-6.1.38-060138
apt -f install
答案1
使用以下命令:
apt install linux-headers-6.1.38-060138
apt -f install