![尝试安装 Linux 标头 2204](https://linux22.com/image/1071879/%E5%B0%9D%E8%AF%95%E5%AE%89%E8%A3%85%20Linux%20%E6%A0%87%E5%A4%B4%202204.png)
尝试为 Ubuntu 2204 桌面(uname -r = 5.13.0-40-generic)安装 Linux 标头并得到:
sudo apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-headers-5.13.0-40-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-5.13.0-40-generic' has no installation candidate
有什么解决办法?谢谢。
答案1
您是从旧版本升级的。请尝试通过 安装带有 ist 标头的当前内核sudo apt install linux-generic
。(它可能已经安装。)然后重新启动以开始使用该内核。