CentOS8—root用戶運行chrome提示:Running as root without --no-sandbox is not supported.


更換阿里源,詳見:https://developer.aliyun.com/mirror/centos

下載安裝chrome

1 yum install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

終端運行

1 google-chrome

錯誤提示為:

Running as root without --no-sandbox is not supported. 

 解決辦法:

(1)切換到普通用戶;

(2)root用戶編輯chrome快捷方式

1 vi /usr/share/applications/google-chrome.desktop

"i"鍵進入編輯模式,找到

Exec=/usr/bin/google-chrome-stable %U

 修改為

Exec=/usr/bin/google-chrome-stable --no-sandbox %U

 “esc”鍵退出編輯模式,“:wq”保存並退出

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM