分配

分配

最近,在尝试启动另一个基于 Electron 的应用程序 ( particl-desktop) 后,我遇到了同样的问题,我可以通过运行以下命令来手动修复它:

sudo chown root chrome-sandbox
chmod 4755 chrome-sandbox

这使我能够成功启动上面提到的包。然而,在再次做同样的事情之前,我想知道为什么这种情况正在发生,是否有更永久的解决方案以防出现这种情况保持正在发生。

我读到,这些应用程序也可以使用该--no-sandbox标志启动。但这样做安全吗?

分配

Debian 10(巴斯特)

问题

atom &
/usr/bin/atom: line 190: 27367 Trace/breakpoint trap   nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
[27367:0520/072821.694231: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 /usr/share/atom/chrome-sandbox is owned by root and has mode 4755.

更多信息

uname -a
Linux debian 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux
journalctl
May 20 07:28:21 debian kernel: traps: atom[27367] trap int3 ip:560ceaee7627 sp:7ffdfd684ad0 error:0 in atom[560ce8fc3000+5024000]
sudo dpkg -l | grep atom
ii  atom                                   1.47.0                               amd64        A hackable text editor for the 21st Century.

答案1

当我更新到版本 1.47.0 时,我遇到了同样的问题。正如您提到的,您可以删除沙箱,但目前更好的解决方案是降级到以前的版本。

这显示了您可以降级到的所有版本(您可能应该选择 v1.46.0):

sudo apt-cache policy atom

刚刚运行后:

sudo apt install atom=1.46.0

顺便说一句,这假设您的 resources.list.d 目录中有 Atom 存储库。您可以检查:

cd /etc/apt/sources.list.d
ls

然后你应该看到atom.list。如果你不这样做,请参阅安装原子

相关内容