无法从 WSL2 启动浏览器

无法从 WSL2 启动浏览器

当我尝试从 WSL 启动浏览器时,它显示以下消息:

Command '/usr/bin/x-www-browser' requires the chromium snap to be installed.
Please install it with:

snap install chromium

跑步snap install chromium让我:

error: cannot communicate with server: Post http://localhost/v2/snaps/chromium: dial unix /run/snapd.socket: connect: no such file or directory

答案1

我可以通过卸载 Chromium 来解决这个问题:

sudo apt-get purge chromium-browser
rm -rf ~/.config/chromium/

相关内容