Workaround for uid_map error on Ubuntu 24.04 - 2024.2 English - UG1144

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2024-11-13
Version
2024.2 English

When you see this error in ubuntu 24.04 OS.

Errno 1 Operation not permitted" when disable_network (from bitbake/lib/bb/utils.py) attempts to write to the file /proc/self/uid_map .

Use this workaround to build PetaLinux project on UBUNTU 24.04 release:

  • echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns