[GH-ISSUE #4597] firefox: dpkg-query: error: failed to open package info file '/var/lib/dpkg/status' (Linux Mint) #2717

Open
opened 2026-05-05 09:22:52 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @bryn1u on GitHub (Oct 7, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4597

Hey,
There is no way to run firefox via firejail. Output below:

bryn1u@Proton:~$ firefox --version
Mozilla Firefox 93.0
bryn1u@Proton:~$ 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-var-common.inc
Warning: networking feature is disabled in Firejail configuration file
Parent pid 11197, child pid 11198
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
Warning: cleaning all supplementary groups
Warning: cleaning all supplementary groups
Post-exec seccomp protector enabled
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Child process initialized in 76.82 ms
dpkg-query: error: failed to open package info file '/var/lib/dpkg/status' for reading: No such file or directory
Error: no DISPLAY environment variable specified

Parent is shutting down, bye...
bryn1u@Proton:~$ 
Originally created by @bryn1u on GitHub (Oct 7, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4597 Hey, There is no way to run firefox via firejail. Output below: ```console bryn1u@Proton:~$ firefox --version Mozilla Firefox 93.0 bryn1u@Proton:~$ 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-var-common.inc Warning: networking feature is disabled in Firejail configuration file Parent pid 11197, child pid 11198 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 Warning: cleaning all supplementary groups Warning: cleaning all supplementary groups Post-exec seccomp protector enabled Seccomp list in: !chroot, check list: @default-keep, prelist: unknown, Child process initialized in 76.82 ms dpkg-query: error: failed to open package info file '/var/lib/dpkg/status' for reading: No such file or directory Error: no DISPLAY environment variable specified Parent is shutting down, bye... bryn1u@Proton:~$ ```
Author
Owner

@kmk3 commented on GitHub (Oct 8, 2021):

@bryn1u commented on Oct 7:

Hey, There is no way to run firefox via firejail. Output below:

It works for me on Artix.

More information would be helpful; please follow the bug report template:

<!-- gh-comment-id:938503656 --> @kmk3 commented on GitHub (Oct 8, 2021): @bryn1u commented [on Oct 7](https://github.com/netblue30/firejail/issues/4597#issue-1020458684): > Hey, There is no way to run firefox via firejail. Output below: It works for me on Artix. More information would be helpful; please follow the bug report template: * <https://github.com/netblue30/firejail/issues/new?assignees=&labels=&template=bug_report.md&title=>
Author
Owner

@bryn1u commented on GitHub (Oct 8, 2021):

The problem occurs only firefox. It works for vlc, smplayer and so on.
Im using Linux Mint 20.2. I think it was similiar problem here but was for an older version of firejail and firefox.

dpkg-query: error: failed to open package info file '/var/lib/dpkg/status' for reading: No such file or directory

<!-- gh-comment-id:938516313 --> @bryn1u commented on GitHub (Oct 8, 2021): The problem occurs only firefox. It works for vlc, smplayer and so on. Im using Linux Mint 20.2. I think it was similiar problem here but was for an older version of firejail and firefox. > dpkg-query: error: failed to open package info file '/var/lib/dpkg/status' for reading: No such file or directory
Author
Owner

@reinerh commented on GitHub (Oct 8, 2021):

Sounds similar to #3680.
Mint uses a start script for firefox instead of a binary like Debian at /usr/bin/firefox.
They query the dpkg database in the script, which fails (because it's not whitelisted).

Error: no DISPLAY environment variable specified

This sounds like something clears the environment?

<!-- gh-comment-id:938678572 --> @reinerh commented on GitHub (Oct 8, 2021): Sounds similar to #3680. Mint uses a start script for firefox instead of a binary like Debian at `/usr/bin/firefox`. They query the dpkg database in the script, which fails (because it's not whitelisted). > Error: no DISPLAY environment variable specified This sounds like something clears the environment?
Author
Owner

@rusty-snake commented on GitHub (Oct 30, 2022):

Still an issue?

<!-- gh-comment-id:1296298789 --> @rusty-snake commented on GitHub (Oct 30, 2022): Still an issue?
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#2717
No description provided.