When I run, the arduino-cli in the nx shell dev environment, I get the error below. I made some search but without success. Can someone help me to solve this issue ?
> arduino-cli
bwrap: setting up uid map: Permission denied
Yes, I’m running Ubuntu 24.04.1 LTS
I updated the shell.nix according to your suggestion and tried the fix recommended below but already have the latest version of apparmor. So I still have the issue.
I don’t have much experience with apparmor, but I got the same issue using a fhs env in ubuntu 24.04 and this seems to work for me. I don’t know what I am doing, so this may be insecure.
Add this file to /etc/apparmor.d/bwrap and systemctl reload apparmor
abi <abi/4.0>,
include <tunables/global>
profile bwrap /nix/store/*/bin/bwrap flags=(unconfined) {
userns,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/bwrap>
}