Package: nut
Version: 2.7.4-14ubuntu2
Severity: normal
Dear Maintainer,
during installation of nut in an LXD container, the postinst script
fails at this line:
[ -x /etc/init.d/udev ] && pidof systemd-udevd > /dev/null \
&& udevadm trigger --subsystem-match=usb --action=change
The container lacks permission to trigger USB changes via udevadm,
causing postinst to fail, although the rest of NUT works.
Steps to reproduce:
1. Launch a Debian container:
lxc launch images:debian/12 mynut
2. Install nut:
lxc exec mynut -- apt update
lxc exec mynut -- apt install nut
3. Observe postinst failure.
Suggested fix: Skip udevadm trigger if running inside a container or
without sufficient privileges. Possibly check with
systemd-detect-virt --container.
-- System Information:
Debian Release: bookworm/sid
APT prefers jammy-updates
APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500,
'jammy'), (100, 'jammy-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 6.8.0-85-generic (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN,
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages nut depends on:
ii nut-client 2.7.4-14ubuntu2
ii nut-server 2.7.4-14ubuntu2
nut recommends no packages.
nut suggests no packages.
-- no debconf information