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