尝试安装 Linux 标头 2204

尝试安装 Linux 标头 2204

尝试为 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。(它可能已经安装。)然后重新启动以开始使用该内核。

相关内容