-
Notifications
You must be signed in to change notification settings - Fork 3.3k
chromium in unbuntu latest is not installed from snap and therefore it's not possible to run it #12096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @gusega , Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating |
We're encountering this issue when running Chrome in headless mode via Karma on the Ubuntu 22.04 runner image. A couple of workarounds are documented in Chrome's AppArmor userns restrictions guide. One of them involves falling back to the setuid sandbox helper ( However, this binary doesn't appear to be present or configured in the current runner image. As far as I understand, since these runners likely don't allow modifying AppArmor profiles or kernel settings, we're unable to install and set the required permissions ourselves. Would it be possible to include the setuid sandbox helper as part of the image, so headless Chrome can run securely without relying on I'm still learning about these system-level constraints and CI internals, so please let me know if I've misunderstood anything or if additional logs would be helpful. |
@kishorekumar-anchala I managed to get our tests running again, though the solution feels a bit hacky. Confirm the OS version
Locate Chromium
This was a bit surprising because Chrome's AppArmor docs indicates that Ubuntu's Chromium is packaged as a
Inspect pathThe binary at that path turned out to be a symlink:
Verify presence of the Sandbox
FixFollowing Chromium's suid sandbox documentation and this Ask Ubuntu thread, we did the following:
I hope this helps shed some light on how to address the issue. |
Hi @gusega, @ChinHairSaintClair, Thank you for your insights. The issue is currently under investigation, and we will provide an update shortly. |
Description
Hi azure team,
In azure devops pipelines on ubuntu: 24.04.2 image version: 20250420.1.0
chromium is not installed from snap and therefore it's not possible to start it.
Way to reproduce:
see more details here: https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
Workaround
google-chrome works fine.
Thanks
Platforms affected
Runner images affected
Image version and build link
20250420.1.0
Is it regression?
no
Expected behavior
chromium works
Actual behavior
it does not
[2007:2007:0425/163136.680338:FATAL:zygote_host_impl_linux.cc(132)] No usable sandbox! If you are running on Ubuntu 23.10+ or another Linux distro that has disabled unprivileged user namespaces with AppArmor, see https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md. Otherwise see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the (older) SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
#0 0x55c9861580d2 base::debug::CollectStackTrace()
#1 0x55c98614526e base::debug::StackTrace::StackTrace()
#2 0x55c98609839a logging::LogMessage::Flush()
#3 0x55c986098e99 logging::LogMessageFatal::~LogMessageFatal()
#4 0x55c98412fd6e content::ZygoteHostImpl::Init()
#5 0x55c9853c006c content::ContentMainRunnerImpl::Initialize()
#6 0x55c9853bdf7c content::RunContentProcess()
#7 0x55c9853be357 content::ContentMain()
#8 0x55c980da6385 ChromeMain
#9 0x7f0047a2a1ca (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)
#10 0x7f0047a2a28b __libc_start_main
#11 0x55c980da602a _start
Repro steps
azure devops pipeline with:
The text was updated successfully, but these errors were encountered: