[GH-ISSUE #7057] tor-browser does not work with firejail: Warning fcopy: cannot create symbolic link /etc/alternatives/js #3470

Open
opened 2026-05-05 10:01:02 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @mYnDstrEAm on GitHub (Feb 8, 2026).
Original GitHub issue: https://github.com/netblue30/firejail/issues/7057

Description

Tor browser used to work fine for a long time but now I'm getting these errors when running firejail --profile=/etc/firejail/start-tor-browser.profile /home/username/apps/tor-browser_en-US/start-tor-browser.desktop or firejail torbrowser-launcher:

Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Parent pid 1932310, child pid 1932312
Warning: cannot find /var/run/utmp
108 programs installed in ... ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning fcopy: cannot create symbolic link /etc/alternatives/js
Warning fcopy: cannot create symbolic link /etc/alternatives/fakeroot
Warning fcopy: cannot create symbolic link /etc/alternatives/mailx
Warning fcopy: cannot create symbolic link /etc/alternatives/Mail
....

The first command shows 126 programs installed in ... and there Tor browser does not start due to

Base filesystem installed in .... ms
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Child process initialized in .... ms
env: ‘./Browser/execdesktop’: No such file or directory

but it does start when changing the command to firejail --profile=/etc/firejail/start-tor-browser.profile /home/username/apps/tor-browser_en-US/Browser/start-tor-browser

In the second command, after the Tor browser started, it shows the error

Tor exited during startup. This might be due to an error in your torrc file, a bug in Tor or another program on your system, or faulty hardware. Until you fix the underlying problem and restart Tor, Tor Browser will not start.

I don't know why Tor exited or how to start it. The torrc file must be fine because with the first command I can start the Tor browser.

This could be related to #6269

Steps to Reproduce

Steps to reproduce the behavior

  1. Run in bash LC_ALL=C firejail /usr/bin/torbrowser-launcher
  2. See errors in console and in browser window

Expected behavior

Tor browser should be functional and no errors should be in console.

Actual behavior

Warning fcopy: cannot create symbolic link errors in console and Tor exited during startup error in Tor browser.

Behavior without a profile

What changed calling LC_ALL=C firejail --noprofile /path/to/program in a
terminal?

Additional context

Any other detail that may help to understand/debug the problem

Environment

  • Name/version/arch of the Linux kernel (uname -srm): Linux 6.12.63+deb13-amd64 x86_64
  • Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): Debian 13
  • Name/version of the relevant program(s)/package(s) (e.g. "firefox 134.0-1,
    mesa 1:24.3.3-2"): Tor Browser Launcher 0.3.7-3
  • Version of Firejail (firejail --version): 0.9.74
  • If you use a development version of firejail, also the commit from which it
    was compiled (git rev-parse HEAD):

Checklist

  • I am using firejail 0.9.78 or later
  • I am using the full program path (e.g. firejail /usr/bin/vlc instead of firejail vlc; see https://github.com/netblue30/firejail/issues/2877)
  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Output of LC_ALL=C firejail /path/to/program

output goes here

Output of LC_ALL=C firejail --debug /path/to/program

output goes here

Originally created by @mYnDstrEAm on GitHub (Feb 8, 2026). Original GitHub issue: https://github.com/netblue30/firejail/issues/7057 ### Description Tor browser used to work fine for a long time but now I'm getting these errors when running `firejail --profile=/etc/firejail/start-tor-browser.profile /home/username/apps/tor-browser_en-US/start-tor-browser.desktop` or `firejail torbrowser-launcher`: ``` Seccomp list in: !chroot, check list: @default-keep, prelist: unknown, Parent pid 1932310, child pid 1932312 Warning: cannot find /var/run/utmp 108 programs installed in ... ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Warning fcopy: cannot create symbolic link /etc/alternatives/js Warning fcopy: cannot create symbolic link /etc/alternatives/fakeroot Warning fcopy: cannot create symbolic link /etc/alternatives/mailx Warning fcopy: cannot create symbolic link /etc/alternatives/Mail .... ``` The first command shows `126 programs installed in ...` and there Tor browser does not start due to ``` Base filesystem installed in .... ms Seccomp list in: !chroot, check list: @default-keep, prelist: unknown, Child process initialized in .... ms env: ‘./Browser/execdesktop’: No such file or directory ``` but it does start when changing the command to `firejail --profile=/etc/firejail/start-tor-browser.profile /home/username/apps/tor-browser_en-US/Browser/start-tor-browser` In the second command, after the Tor browser started, it shows the error > Tor exited during startup. This might be due to an error in your torrc file, a bug in Tor or another program on your system, or faulty hardware. Until you fix the underlying problem and restart Tor, Tor Browser will not start. I don't know why Tor exited or how to start it. The torrc file must be fine because with the first command I can start the Tor browser. This could be related to #6269 ### Steps to Reproduce _Steps to reproduce the behavior_ 1. Run in bash `LC_ALL=C firejail /usr/bin/torbrowser-launcher` 2. See errors in console and in browser window ### Expected behavior Tor browser should be functional and no errors should be in console. ### Actual behavior _Warning fcopy: cannot create symbolic link_ errors in console and _Tor exited during startup_ error in Tor browser. ### Behavior without a profile _What changed calling `LC_ALL=C firejail --noprofile /path/to/program` in a terminal?_ ### Additional context _Any other detail that may help to understand/debug the problem_ ### Environment - Name/version/arch of the Linux kernel (`uname -srm`): Linux 6.12.63+deb13-amd64 x86_64 - Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): Debian 13 - Name/version of the relevant program(s)/package(s) (e.g. "firefox 134.0-1, mesa 1:24.3.3-2"): Tor Browser Launcher 0.3.7-3 - Version of Firejail (`firejail --version`): 0.9.74 - If you use a development version of firejail, also the commit from which it was compiled (`git rev-parse HEAD`): ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [ ] I am using firejail [0.9.78 or later](https://github.com/netblue30/firejail/tree/master/SECURITY.md) - [x] I am using the full program path (e.g. `firejail /usr/bin/vlc` instead of `firejail vlc`; see `https://github.com/netblue30/firejail/issues/2877`) - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [ ] I can reproduce the issue without custom modifications (e.g. globals.local). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [ ] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [x] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [x] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log <details> <summary>Output of <code>LC_ALL=C firejail /path/to/program</code></summary> <p> ``` output goes here ``` </p> </details> <details> <summary>Output of <code>LC_ALL=C firejail --debug /path/to/program</code></summary> <p> <!-- If the output is too long, save it to a file (e.g. "fjdebug.txt") and attach it to the comment: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files If that does not work, create a secret gist at https://gist.github.com/ and link it here. --> ``` output goes here ``` </p> </details>
gitea-mirror added the
needinfo
label 2026-05-05 10:01:02 -06:00
Author
Owner

@kmk3 commented on GitHub (Feb 10, 2026):

  • Version of Firejail (firejail --version): 0.9.74

Note that we do not maintain that version of firejail:

Versions other than the latest usually have outdated profiles and may contain
bugs and security vulnerabilities that were fixed in later versions.

See also:

What happens with the latest released version?

<!-- gh-comment-id:3879550157 --> @kmk3 commented on GitHub (Feb 10, 2026): > * Version of Firejail (`firejail --version`): 0.9.74 Note that we do not maintain that version of firejail: * <https://github.com/netblue30/firejail/blob/master/SECURITY.md> Versions other than the latest usually have outdated profiles and may contain bugs and security vulnerabilities that were fixed in later versions. See also: * <https://github.com/netblue30/firejail#installing> What happens with the latest released version?
Author
Owner

@mYnDstrEAm commented on GitHub (Feb 10, 2026):

If there's a firejail repo for Debian with the latest or a newer version of firejail, I'd certainly try it. This is the latest version I can get on Debian; it's in the official Debian repos, don't know why there apparently is an old version in it.

<!-- gh-comment-id:3879613393 --> @mYnDstrEAm commented on GitHub (Feb 10, 2026): If there's a firejail repo for Debian with the latest or a newer version of firejail, I'd certainly try it. This is the latest version I can get on Debian; it's in the official Debian repos, don't know why there apparently is an old version in it.
Author
Owner

@kmk3 commented on GitHub (Feb 17, 2026):

If there's a firejail repo for Debian with the latest or a newer version of
firejail, I'd certainly try it. This is the latest version I can get on
Debian; it's in the official Debian repos, don't know why there apparently is
an old version in it.

Does it happen with firejail-git?

<!-- gh-comment-id:3912704490 --> @kmk3 commented on GitHub (Feb 17, 2026): > If there's a firejail repo for Debian with the latest or a newer version of > firejail, I'd certainly try it. This is the latest version I can get on > Debian; it's in the official Debian repos, don't know why there apparently is > an old version in it. Does it happen with firejail-git? * https://github.com/netblue30/firejail#building
Author
Owner

@mYnDstrEAm commented on GitHub (Mar 21, 2026):

I had it started with firejail and it displayed that there is an update in the top right corner as usual so I updated it and afterwards it shows error Error: no suitable /dir/start-tor-browser executable found. I installed Tor Browser anew (downloaded from official website and put the extracted folder into a new directory). I then just had to change ~/.config/firejail/start-tor-browser.local to whitelist the new directory and now firejail --profile=/etc/firejail/start-tor-browser.profile /home/dir/tor-browser/start-tor-browser.desktop works. Seems like this is solved. There's quite a bit of content in start-tor-browser.local - is this created automatically or shouldn't this be in the main profile?

<!-- gh-comment-id:4101559160 --> @mYnDstrEAm commented on GitHub (Mar 21, 2026): I had it started with firejail and it displayed that there is an update in the top right corner as usual so I updated it and afterwards it shows error `Error: no suitable /dir/start-tor-browser executable found`. I installed Tor Browser anew (downloaded from official website and put the extracted folder into a new directory). I then just had to change `~/.config/firejail/start-tor-browser.local` to whitelist the new directory and now `firejail --profile=/etc/firejail/start-tor-browser.profile /home/dir/tor-browser/start-tor-browser.desktop` works. Seems like this is solved. There's quite a bit of content in start-tor-browser.local - is this created automatically or shouldn't this be in the main profile?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3470
No description provided.