
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
。(すでにインストールされている可能性があります。) その後、再起動してそのカーネルの使用を開始します。