升级到 24.04 后,当我尝试运行此 Electron AppImage 应用程序文件时收到消息The SUID sandbox helper binary was found, but is not configured correctly.
。整个错误如下所示(以 Obsidian 应用程序为例):
> ./Obsidian-1.4.13.AppImage
[21824:0430/094557.661436:FATAL:setuid_sandbox_host.cc(158)]
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 /tmp/.mount_ObsidiOpBPaM/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (core dumped)
我不确定它要求什么;/tmp/.mount_ObsidiOpBPaM/chrome-sandbox
不存在。权限/tmp
设置为 4777,所有者为 root。
如何重新运行该应用程序?
答案1
使用 -option 运行你的 appimage --no-sandbox
:
./Obsidian-1.4.13.AppImage --no-sandbox
你也可以尝试
./Obsidian-1.4.13.AppImage --disable-setuid-sandbox
答案2
安装 Kubuntu 24.04 后,我遇到了同样的问题。我的解决方案是通过编辑“/etc/fstab”添加nosuid
挂载选项/tmp
tmpfs /tmp tmpfs defaults,noatime,nodiratime,nosuid,mode=1777 0 0