Skip to content
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

chromium: program does not start (snap) #5045

Closed
ghost opened this issue Mar 14, 2022 · 1 comment
Closed

chromium: program does not start (snap) #5045

ghost opened this issue Mar 14, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists notabug The behavior is as intended or the issue was caused by user error or by an old version

Comments

@ghost
Copy link

ghost commented Mar 14, 2022

I have tried running google-chrome with firejail google-chrome or firejail --private google-chrome and it runs fine.

Trying to do the same for chromium-browser though fails with:

Reading profile /etc/firejail/chromium-browser.profile
Reading profile /etc/firejail/chromium.profile
Reading profile /etc/firejail/chromium-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Warning: networking feature is disabled in Firejail configuration file
Parent pid 633232, child pid 633233
Child process initialized in 44.23 ms
2022/03/14 09:13:44.464683 system_key.go:154: cannot determine cgroup version: cannot determine filesystem type: cannot statfs path: permission denied

I am on Ubuntu 20.04.

@kmk3
Copy link
Collaborator

kmk3 commented Mar 14, 2022

@infosisio commented on Mar 14:

I have tried running google-chrome with firejail google-chrome or firejail
--private google-chrome and it runs fine.

Trying to do the same for chromium-browser though fails with:

[...]
2022/03/14 09:13:44.464683 system_key.go:154: cannot determine cgroup version: cannot determine filesystem type: cannot statfs path: permission denied

That seems to come from here:

https://github.com/snapcore/snapd/blob/8fc0bc71e41c91e7931d53a8820359abe923ec9e/interfaces/system_key.go#L154

		logger.Noticef("cannot determine cgroup version: %v", err)

In which case, note that firejail is incompatible with snaps and flatpaks.

I am on Ubuntu 20.04.

Note that when trying to install certain packages with apt, on recent
versions of Ubuntu (such as on 21.10) that will actually end up installing a
snap instead of an actual deb package. See:

So if you are affected by this, you need to install the "real" chromium package
to use it in firejail.

You might also need to remove the chromium snap first before trying that.

Note that there are Ubuntu derivatives (such as Linux Mint) that do not do
these shenanigans; their apt should only install proper deb packages.

Closing this as a duplicate of #4962.

@kmk3 kmk3 closed this as completed Mar 14, 2022
@kmk3 kmk3 added duplicate This issue or pull request already exists notabug The behavior is as intended or the issue was caused by user error or by an old version labels Mar 14, 2022
@kmk3 kmk3 changed the title chromium does not work chromium snap does not work Mar 15, 2022
@kmk3 kmk3 changed the title chromium snap does not work chromium does not work (snap) Mar 15, 2022
@kmk3 kmk3 changed the title chromium does not work (snap) chromium: program does not start (snap) Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists notabug The behavior is as intended or the issue was caused by user error or by an old version
Projects
None yet
Development

No branches or pull requests

1 participant