例如,Circuit JS1和嘉立创软件客户端是基于Electron构建的,基于 Node.js 和 Chromium。在Ununtu 24.04,解压安装后,软件无法启动(22.04貌似没有这个问题),例如嘉立创报如下错误:
alpha@mascot.x /opt/lceda-pro $ ./lceda-pro
[21568:0701/005006.084851:FATAL:setuid_sandbox_host.cc(157)] 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 /opt/lceda-pro/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (core dumped)
解决办法,根据错误原因,给chrome-sandbox加上SUID权限:
sudo chmod +s chrome-sandbox