Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.79 KB

ubuntu-24.md

File metadata and controls

58 lines (41 loc) · 1.79 KB

Installing on Ubuntu 24.04

Ubuntu 24.04 introduced restrictions for unprivileged user namespaces that prevents Electron-based apps from running without an appropriate apparmor profile.

Solution 1 (recommended)

Install launcher using the .deb file. This will create an appropriate apparmor profile under the hood for you and you don't need to bother about it.

sudo apt install ./holochain-launcher-0.4-[replace with correct version number]_amd64.deb

Solution 2

If you don't want to use the .deb file but the AppImage, then you will need to create an apparmor profile yourself that points to the location of the AppImage. Follow the instructions below, replacing the launcher version wherever necessary with the actual launcher version that you're trying to use.

  1. Put the launcher AppImage somewhere and give it executable permission, e.g.
sudo mkdir -p /opt/launcher
sudo mv holochain-launcher-0.4-[replace with correct version number].AppImage /opt/launcher/
sudo chown -R $(whoami) /opt/launcher
chmod +x /opt/launcher/holochain-launcher-0.4-[replace with correct version number].AppImage
  1. Create a new profile
sudo nano /etc/apparmor.d/holochain-launcher-0.4
  1. Add the following content
# AppArmor policy for holochain launcher
# ###AUTHOR###
# ###COPYRIGHT###
# ###COMMENT###

abi <abi/4.0>,
#include <tunables/global>

# No template variables specified

/opt/holochain-launcher/holochain-launcher-0.4-[replace with correct version number].AppImage flags=(unconfined) {
  userns,

# No abstractions specified

# No policy groups specified

# No read paths specified

# No write paths specified
}
  1. Reload the apparmor service
sudo systemctl reload apparmor.service