lxd-installer: permission error not handled and lxd snap not installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd-installer (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On a fresh install of 24.04 server on Raspberry Pi, I ran 'lxc list' without having the lxd snap installed already. There was an attempt to install the snap, but it failed, and the snap needed to be manually installed:
nr@pi5:~$ lxc list
Installing LXD snap, please be patient.
Traceback (most recent call last):
File "<string>", line 1, in <module>
PermissionError: [Errno 13] Permission denied
/usr/sbin/lxc: 12: exec: /snap/bin/lxc: not found
More details:
nr@pi5:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu Noble Numbat (development branch)"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_
ID=ubuntu
ID_LIKE=debian
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
PRIVACY_
UBUNTU_
LOGO=ubuntu-logo
nr@pi5:~$ apt policy lxd-installer
lxd-installer:
Installed: 4
Candidate: 4
Version table:
*** 4 500
500 http://
100 /var/lib/
Related branches
- Lucas Kanashiro (community): Approve
- Thomas Parrott (community): Approve
-
Diff: 148 lines (+69/-10)6 files modifieddebian/changelog (+12/-0)
debian/tests/control (+2/-3)
debian/tests/install-on-demand (+1/-1)
debian/tests/not-member-of-lxd-group (+37/-0)
lxd-installer-service (+10/-5)
scripts/lxc (+7/-1)
tags: | added: rls-nn-incoming |
@enr0n, could you share `snap changes` as well as `snap info lxd`, please?