OpenEuler 25.03 installed UKUI but can't run msedge and chrome

[root@OpenEulerWD Desktop]# pwd
/root/Desktop

[root@OpenEulerWD Desktop]# cat google-chrome.desktop microsoft-edge.desktop  | grep stable
Exec=/usr/bin/google-chrome-stable %U
Exec=/usr/bin/google-chrome-stable
Exec=/usr/bin/google-chrome-stable --incognito
Exec=/usr/bin/microsoft-edge-stable %U
Exec=/usr/bin/microsoft-edge-stable
Exec=/usr/bin/microsoft-edge-stable --inprivate

 

strace /usr/bin/google-chrome-stable --incognito
strace /usr/bin/microsoft-edge-stable --inprivate

 

write(2, "[21985:21985:1004/110920.613669:"..., 155[21985:21985:1004/110920.613669:ERROR:zygote_host_impl_linux.cc(105)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.


futex(0x564c91c86248, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(2, "[21929:21929:1004/110819.094760:"..., 155[21929:21929:1004/110819.094760:ERROR:zygote_host_impl_linux.cc(105)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
) = 155

conclusion: 

ERROR:zygote_host_impl_linux.cc(105)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

 

1. 关联问题背景

https://crbug.com/638180 是 Chrome 浏览器官方 bug 追踪系统(Chromium Bug Tracker)中记录的一个经典问题,核心关联 “以 root 用户运行 Chrome/Chromium 浏览器时的沙箱权限限制”

2. 核心问题与报错逻辑

当用户以 root 身份(如 Linux 系统下的管理员账户)直接启动 Chrome、Chromium 或基于它们开发的应用(如 Selenium 自动化工具、Electron 应用)时,浏览器默认的 “沙箱保护机制” 会触发限制,通常会弹出类似以下关键报错:
 
ERROR:zygote_host_impl_linux.cc(105)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
 
(中文含义:不支持以 root 身份运行且未添加 --no-sandbox 参数,请参考 https://crbug.com/638180
posted @ 2025-10-04 12:08  任国强  阅读(34)  评论(0)    收藏  举报