As the title say, I got this error today when trying to open VSCode from WSL2 terminal
How do I fix it?
First I remove vscode server installation folder on my home directory
rm -rf ~/.vscode-server
Logout from the wsl and then I turn off the WSL from windows terminal
logout
wsl --shutdown
After that I start the WSL again and re run the code command
code .
Installing VS Code Server for x64 (019f4d1419fbc8219a181fab7892ebccf7ee29a2)
Downloading: 100%
Unpacking: 100%
Unpacked 1538 files and folders to /home/asubuntung/.vscode-server/bin/019f4d1419fbc8219a181fab7892ebccf7ee29a2.