[GH-ISSUE #2239] Debian based distributions need writable-var in tar.profile #1505

Closed
opened 2026-05-05 08:10:16 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @ghost on GitHub (Nov 5, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2239

On Ubuntu 16.04, dpkg/synaptic throws the below errors when sandboxing tar and installing/upgrading a package:

/bin/tar: ./prerm: Cannot open: Read-only file system
/bin/tar: ./md5sums: Cannot open: Read-only file system
/bin/tar: ./control: Cannot open: Read-only file system
/bin/tar: ./postinst: Cannot open: Read-only file system
/bin/tar: ./postrm: Cannot open: Read-only file system
/bin/tar: ./triggers: Cannot open: Read-only file system
/bin/tar: ./preinst: Cannot open: Read-only file system
/bin/tar: .: Cannot utime: Read-only file system
/bin/tar: .: Cannot change ownership to uid 0, gid 0: Read-only file system
/bin/tar: Exiting with failure status due to previous errors
dpkg: error processing archive /var/cache/apt/archives/php7.1-xml_7.1.23-2+ubuntu16.04.1+deb.sury.org+1_amd64.deb (--unpack):
failed to open package info file '/var/lib/dpkg/tmp.ci/control' for reading: No such file or directory
Errors were encountered while processing:
/var/cache/apt/archives/php7.1-xml_7.1.23-2+ubuntu16.04.1+deb.sury.org+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover

This can be fixed by adding writable-var to the tar profile.

Regards.

Originally created by @ghost on GitHub (Nov 5, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2239 On Ubuntu 16.04, dpkg/synaptic throws the below errors when sandboxing `tar` and installing/upgrading a package: /bin/tar: ./prerm: Cannot open: Read-only file system /bin/tar: ./md5sums: Cannot open: Read-only file system /bin/tar: ./control: Cannot open: Read-only file system /bin/tar: ./postinst: Cannot open: Read-only file system /bin/tar: ./postrm: Cannot open: Read-only file system /bin/tar: ./triggers: Cannot open: Read-only file system /bin/tar: ./preinst: Cannot open: Read-only file system /bin/tar: .: Cannot utime: Read-only file system /bin/tar: .: Cannot change ownership to uid 0, gid 0: Read-only file system /bin/tar: Exiting with failure status due to previous errors dpkg: error processing archive /var/cache/apt/archives/php7.1-xml_7.1.23-2+ubuntu16.04.1+deb.sury.org+1_amd64.deb (--unpack): failed to open package info file '/var/lib/dpkg/tmp.ci/control' for reading: No such file or directory Errors were encountered while processing: /var/cache/apt/archives/php7.1-xml_7.1.23-2+ubuntu16.04.1+deb.sury.org+1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover This can be fixed by adding `writable-var` to the `tar` profile. Regards.
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#1505
No description provided.