The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without s

问题报错:

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/fut/AnythingLLMDesktop/anythingllm-desktop/chrome-sandbox is owned by root and has mode 4755

解决方法:

问题产生
在Linux版AppImage的时候,打开无反应,使用命令行运行,出现了下面的报错信息:

linux:

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_AnotheUExhKn/chrome-sandbox is owned by root and has mode 4755.

部分解决
只要将给出的chrome-sandbox文件给予root用户并赋予4755权限,重新点击运行即可。

sudo chown root <path_to_marktext_dir>/chrome-sandbox && sudo chmod 4755 <path_to_marktext_dir>/chrome-sandbox

该问题为使用Electron给软件打包时产生的错误,是Linux内核的user_namespaces没有自动打开的问题。

解决方案
解决的办法有四种,第四种解决方法,一劳永逸。

1、启用用户名称空间: sudo sysctl kernel.unprivileged_userns_clone=1,但每次开机都要运行该命令。
2、给报错信息给出的文件授权:sudo chown root /chrome-sandbox && sudo chmod 4755 /chrome-sandbox,即解决网易云音乐该问题时的操作,但不适用于picgo。
3、运行的时候加上免沙箱命令:--no-sandbox
4、开机时自启动用户名称空间:echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/userns.conf
该命令只适用于Debian/Ubuntu系列Linux发行版,未测试其他发行版。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

FL1623863129

你的打赏是我写文章最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值