Issue
Ubuntu 22.04 dotnet --info Can't access dotnet after update. Reinstall dotnet and vscode didn't help
enter image description here
Solution
Try this solution https://github.com/dotnet/sdk/issues/27082#issuecomment-1211143446 for me it solved the problem
Answered By - Роман Тимохов Answer Checked By - Marie Seifert (WPSolving Admin)