2017-02-17 16:33:51 |
Zygmunt Krynicki |
description |
In a 16.04 classic system with the default kernel from linode, snapd 2.0.8 installed (built from https://github.com/snapcore/snapd/commit/71244932e45e05528db6919e23711355d6f63d0c), I get an error when trying to install the first snap, it gets stuck in the last line:
linode:ubuntu-16.04 ~/tests/basics# uname -a
Linux ubuntu 4.5.5-x86_64-linode69 #3 SMP Fri May 20 15:25:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
linode:ubuntu-16.04 ~/tests/basics# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
linode:ubuntu-16.04 ~/tests/basics# snap list
No snaps are installed yet. Try 'snap install hello-world'.
linode:ubuntu-16.04 ~/tests/basics# snap install hello-world
2016-06-10T11:22:03Z ERROR cannot setup apparmor for snap "hello-world": cannot load apparmor profile "snap.hello-world.echo": cannot load apparmor profile: exit status 1
apparmor_parser output:
Cache read/write disabled: interface file missing. (Kernel needs AppArmor 2.4 compatibility patch.)
Warning: unable to find a suitable fs in /proc/mounts, is it mounted?
Use --subdomainfs to override.
[-] Setup snap "hello-world" security profiles |
A Linode instance of Ubuntu using the stock Linode kernel does not work with snapd as snapd assumes the ubuntu kernel (when os-release says it is ubuntu) and uses apparmor features otherwise not available.
There are several issues here:
- branding !ubuntu as ubuntu
- running on apparmor system that is not supporting new constructs
- using runtime detection (across snapd+snap-confine) rather than compile-time or simplified (which distro + release) checks |
|