之前參考此篇:Linux 使用 Nativefier 將 Web 服務變成應用程式 將網頁轉>換成 Linux 的應用程式~
但是 Ubuntu Linux 升級到 24.04 後,執行卻會出現下述錯誤:
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 /opt/messenger-linux-x64/chrome-sandbox is owned by root and has mode 4755.
要怎麼解決呢?
Linux 遇到 SUID sandbox helper binary was found 錯誤修正
依照錯誤訊息的作法:
- sudo chown root:root messenger
- sudo chmod 4755 messenger
- ./messenger # 出現下述錯誤訊息,還是無法執行
- ./messenger: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory
所以將權限修改回來,改回原本 User、755 等,再來改用 --no-sandbox 的參數即可
- ./messenger --no-sandbox # 用這個就可以正常執行囉~
以下是查到其它兩種方法,但是嘗試都是失敗的:(二選一,並不是一起的)
- sudo sysctl kernel.unprivileged_userns_clone=1
- ./messenger --disable-setuid-sandbox