"Purging" AppArmor makes guix-build work for me. However, I was stunned
when I realized that it blows away all your AppArmor involved apps,
including Firefox, etc. After re-installing Firefox, the old error
returns:

```plaintext
guix shell: error: mount: mount "none" on "/tmp/guix-directory.Tl3CjE": 
Permission denied
```

I also have guix as

```plaintext
tim@saba:~/Projects/bitcoin$ which guix
/usr/local/bin/guix
```

I changed the path in `/etc/apparmor.d/guix` and ran aa-enforce to no
avail. Elsewhere, there are suggestions that you should use the link
address

```plaintext
tim@saba:~/Projects/bitcoin$ ls -la /usr/local/bin/guix
lrwxrwxrwx 1 root root 54 Nov 27 06:30 /usr/local/bin/guix -> 
/var/guix/profiles/per-user/root/current-guix/bin/guix
```

but that also doesn't work. I also want to say if you completely remove
the `/etc/apparmor.d/guix` file and re-run aa-enforce, it is the same
error:

```plaintext
im@saba:~/Projects$ sudo aa-enforce guix
Traceback (most recent call last):
  File "/usr/sbin/aa-enforce", line 33, in <module>
    tool.cmd_enforce()
  File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 134, in 
cmd_enforce
    for (program, prof_filename, output_name) in self.get_next_for_modechange():
  File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 97, in 
get_next_for_modechange
    aaui.UI_Info(_('Profile for %s not found, skipping') % output_name)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable


An unexpected error occurred!

For details, see /tmp/apparmor-bugreport-hasblz31.txt
Please consider reporting a bug at https://gitlab.com/apparmor/apparmor/-/issues
and attach this file.
```

so maybe it is in the wrong place?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2064115

Title:
  Conflict between apparmor and guix on Ubuntu 24.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/guix/+bug/2064115/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to