Flat Tyre With Flatpak

Let's plug the hole.

Old tape pulled out if its housing.
Photo by Etienne Girardet

Are you getting "ldconfig failed, exit status 256" when trying to run an app installed with Flatpak?

The solution is to create the file /etc/apparmor.d/bwrap with the following contents:

abi <abi/4.0>,
include <tunables/global>

profile bwrap /usr/bin/bwrap flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/bwrap>
}

Copy/paste this in your new file.

Then reload the module:

sudo systemctl reload apparmor

You're welcome.