Open dlesbre opened 1 month ago
Thanks @dlesbre, I've experienced the same issue. Upgrade to 24.04, and then opam upgrade
failure. Doing as suggested by @etbe worked. I'm copying his suggestion here:
To resolve that you could upgrade to SE Linux, but the other option is to create a file named
/etc/apparmor.d/bwrap
with the following contents:abi <abi/4.0>, include <tunables/global>
profile bwrap /usr/bin/bwrap flags=(unconfined) { userns,
include if exists <local/bwrap> }
> Then run `systemctl reload apparmor`.
I can confirm that the solution posted by @cuihtlauac worked. Might be worthwhile to add it to the docs?
I've recently upgraded my computer from kubuntu 23.10 to kubuntu 24.04. This lead to errors with opam. Specifically,
opam upgrade
failed at trying to build the first package (dune.3.15.2
), andopam switch create 4.14.1
also failed with the same error message:Doing some digging, it seems to be related to ubuntu deciding to restrict unprivileged user namespaces https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces. I found a fix, detailed here: https://etbe.coker.com.au/2024/04/24/ubuntu-24-04-bubblewrap/ which got opam working again.
Config: