
嘗試為 Ubuntu 2204 桌面安裝 linux 標頭(uname -r = 5.13.0-40-generic),我得到:
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
。 (它可能已經安裝了。)然後重新啟動以開始使用該核心。