While performing do-release-update from ubuntu-server 18.04 -> 20.04 I encountered an error as shown in the console image attached. https://imgur.com/Cl5U3sB
After the upgrade and a reboot I now have the following situation:
$ sudo snap install lxd
error: cannot perform the following tasks:
- Run install hook of "lxd" snap if present (run hook "install": cannot perform operation: mount -- rbind /run/netns /tmp/snap.rootfs_MydTzh//run/netns: No such file or directory)
$ sudo ls -l /tmp/snap.rootfs_*
/tmp/snap.rootfs_CHyUFC:
total 0
/tmp/snap.rootfs_iF4oA2:
total 0
/tmp/snap.rootfs_jB6PpL:
total 0
/tmp/snap.rootfs_n3zp7D:
total 0
/tmp/snap.rootfs_PYnZ1v:
total 0
Then it’s probably best to remove /run/netns, since it points to a nonexistent location anyway, and then try to update the lxd package (or snap in this case) again.