我正在尝试在 Linux 中从命令行运行 chrome 30(执行下载并解压到文件夹中的版本的 google-chrome 文件)。
如果我在没有选项 --no-sandbox
的情况下运行它,结果如下
[24419:24419:1016/012228:FATAL:zygote_host_impl_linux.cc(142)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/user/user.browsers/chrome-30/opt/google/chrome/chrome-sandbox is owned by root and has mode 4755. ./chrome-30.sh: line 5: 24419 Aborted (core dumped) $CHROME_FOLDER/google-chrome
如果我使用选项 --no-sandbox
运行它,还要遵循此 procedure进行配置,结果报错:
È stata creata una nuova finestra nella sessione corrente del browser.
[1016/012454:ERROR:nacl_helper_linux.cc(269)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
最后一个过程适用于 chrome v31。 有帮助吗?
最佳答案
如果您有 root 权限,您应该根据 these instructions 设置 SUID 沙盒,并在没有 --no-sandbox
选项的情况下运行。
如果你没有 root 权限,你不能设置 SUID 沙盒,你必须使用 --no-sandbox
选项,但仅用于测试,因为它是一个安全风险。
在您的情况下,看起来您尝试使用 --no-sandbox
运行一个新的 Chrome 窗口,而另一个 session 已经在运行(这就是意大利语中的消息)。尝试在开始新 session 之前关闭现有 session 。要关闭现有 session ,请在系统托盘中找到 Chrome 图标,右键单击它并选择 Exit
。如果您没有看到系统托盘图标,您还可以尝试 killall google-chrome
或 killall chromium
,具体取决于您使用的版本。
关于google-chrome - 在没有沙箱的情况下运行 chrome 30,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19392796/