Conflict between apparmor and guix on Ubuntu 24.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
guix (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
On Ubuntu 24.04 i'm unable to use GNU guix as installed from the apt repository.
Version:
Package: guix
Architecture: amd64
Version: 1.4.0-6build1
To reproduce:
- Install a fresh 23.10 host
- Upgrade to 24.04 with do-release-upgrade -d (but i’ve heard reports that this also happens with clean 24.04 install), reboot
- `apt-install guix`
- Create an unprivileged user with adduser
- `guix environment -C` as the user gives:
```
$ guix environment -C
guix environment: warning: no packages specified; creating an empty environment
substitute: updating substitutes from 'https:/
0.4 MB will be downloaded
glibc-
substitute: updating substitutes from 'https:/
The following derivation will be built:
/gnu/
22.1 MB will be downloaded
substitute: updating substitutes from 'https:/
bash-5.1.8-doc 301KiB 1.8MiB/s 00:00 [######
building profile with 0 packages...
bash-5.1.8-include 80KiB 3.3MiB/s 00:00 [######
guix environment: error: mount: mount "none" on "/tmp/guix-
```
dmesg shows:
```
[ 264.017001] audit: type=1400 audit(171439412
[ 264.023016] audit: type=1400 audit(171439412
```
It appears that the unprivileged user namespace doesn't allow a bind-mount that guix requires.
Uninstalling `apparmor` and rebooting is the only thing i have found that makes it work.
Selectively disabling the specific rulset with:
# aa-disable unprivileged_userns
Gives a new error:
$ guix environment -C
guix environment: warning: no packages specified; creating an empty environment
guix environment: error: clone: 2114060305: Permission denied
Same for temporarily turning off apparmor entirely.