Rodrigo Asked: 2025-03-08 09:20:04 +0800 CST2025-03-08 09:20:04 +0800 CST 2025-03-08 09:20:04 +0800 CST 如果我使用“--no-sandbox”,为什么 Google Chrome 仅在 WSL 上运行? 772 我在 WSL 中使用 Ubuntu 20.04,如果我不使用--no-sandboxGoogle Chrome,它将无法在 WSL 上运行,为什么?运行命令后,屏幕截图中显示了错误消息google-chrome --no-sandbox 但是打开是正常的。 ubuntu 1 个回答 Voted Best Answer Ramhound 2025-03-08T09:35:02+08:002025-03-08T09:35:02+08:00 如果我不使用 --no-sandbox,Google Chrome 将无法在 wsl 上运行,为什么? 您的默认 WSL 用户是 root。您应该将其更改为其他用户,如果这样做,则--no-sandbox没有必要。如果您想使用 root,您将无法避免该参数。 您可以重新编译 Chromium,并删除相关代码,但这似乎是一个过度的解决方案。
您的默认 WSL 用户是 root。您应该将其更改为其他用户,如果这样做,则
--no-sandbox
没有必要。如果您想使用 root,您将无法避免该参数。您可以重新编译 Chromium,并删除相关代码,但这似乎是一个过度的解决方案。