我正在尝试在 Ubuntu 22.04.1 上的 firejail 中运行 Firefox。
当我使用时firejail firefox
,我得到:
Reading profile /etc/firejail/firefox.profile
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/firefox-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-runuser-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Warning: networking feature is disabled in Firejail configuration file
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Parent pid 4178, child pid 4197
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Child process initialized in 110.56 ms
panic: permission denied
goroutine 1 [running]:
github.com/snapcore/snapd/snapdtool.ExecInSnapdOrCoreSnap()
/build/snapd-fBNDak/snapd-2.56.2+22.04ubuntu1/snapdtool/tool_linux.go:205 +0x40e
main.main()
/build/snapd-fBNDak/snapd-2.56.2+22.04ubuntu1/cmd/snap/main.go:443 +0x45
Parent is shutting down, bye...
当我使用时sudo firejail firefox
,我得到:
Reading profile /etc/firejail/firefox.profile
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/firefox-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-runuser-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Warning: noroot option is not available
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown, DBus user socket was not found.
不幸的是,我不太明白电脑在说什么。我还安装了 Firetools,但从那里点击 Firefox 图标似乎没有任何反应。
我需要做什么才能让它工作?
答案1
Ubuntu 中的默认 Firefox 版本是使用 snap 技术安装的。这已经在沙盒中运行 Firefox。因此,您无需在 Firejail 中运行该版本。就像您体验到的那样,您实际上无法运行该版本。