snapd (deb) fails to install snapd (snap) inside LXD on a buildd based image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
High
|
Unassigned |
Bug Description
This is part of the bootstrapping an image used for buildd's, which are going to be used across architectures for LXD for snapcraft. What follows is the rough steps to reproduce Snapcraft would do to ready the system.
Steps to reproduce:
- lxc remote add buildd https:/
- lxc launch buildd:20.04 snapcraft-
- alias srun="lxc exec snapcraft-
- srun bash
- cat > /etc/systemd/
[Match]
Name=eth0
[Network]
DHCP=ipv4
LinkLocalAddres
[DHCP]
RouteMetric=100
UseMTU=true
EOF
- exit
- lxc restart snapcraft-
- srun apt-get update
- srun apt install snapd
- srun snap install snapd
Observed failure:
error: cannot perform the following tasks:
- Setup snap "snapd" (6434) security profiles (cannot reload udev rules: exit status 1
udev output:
Failed to send reload request: No such file or directory
Output of journalctl -u systemd-udevd:
-- Logs begin at Mon 2020-03-02 13:24:51 UTC, end at Mon 2020-03-02 13:43:56 UTC. --
Mar 02 13:28:15 ubuntu systemd-udevd[53]: Failed to chown '/dev/net/tun' 0 0:
Operation not permitted
Mar 02 13:28:15 ubuntu systemd-udevd[53]: Failed to apply permissions on stat
ic device nodes: Operation not permitted
Mar 02 13:28:15 ubuntu systemd-udevd[63]: ethtool: autonegotiation is unset or enabled, the speed and
duplex are not writable.
This affects core20