运行appium-linux.appimage报错:FATAL:setuid_sandbox_host.cc(157)

deepin 20启动appium桌面版报错:

(base) redsun@redsun-PC:~/Downloads$ ./appium-linux-1.18.0-1.appimage
[12689:0820/214524.388248: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 /tmp/.mount_appium6Dy1uF/chrome-sandbox is owned by root and has mode 4755.

命令已经执行完成,请按回车退出终端。

解决方法:
方法1. sudo sysctl kernel.unprivileged_userns_clone=1(再次开机需用再设置)

(base) redsun@redsun-PC:~/Downloads$ sudo sysctl kernel.unprivileged_userns_clone=1
kernel.unprivileged_userns_clone = 1

方法2.开机时自启动用户名称空间:‘echo ‘kernel.unprivileged_userns_clone=1’ > /etc/sysctl.d/userns.conf’

(base) redsun@redsun-PC:~/Downloads$ sudo echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/userns.conf

感谢:T恤的价格是九镑十五便士

你可能感兴趣的:(problems)