Failed to retrieve available kernel versions
Define R6 Tempered Glass
で
Ubuntu (WSL)
を初期化した際、packageを入れるたびに出るようになったエラー
どうやら
WSL2
のバグらしい
https://github.com/microsoft/WSL/issues/7054
このエラーは無視しても問題ないそうだ
エラーを非表示にする方法
needrestart
を消す
$ sudo apt purge needrestart
from
https://askubuntu.com/questions/1404129/ubuntu-22-04-lts-on-wsl-failed-to-retrieve-available-kernel-versions-failed
https://level69.net/archives/30464
https://github.com/microsoft/WSL/issues/7054#issuecomment-1121779380