Package: trousers Version: 0.3.15-0.1 Severity: normal Hi,
upgrading the trousers package fails: [20/5013]mh@fan:~ $ sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Setting up trousers (0.3.15-0.1) ... insserv: Script `ssh' has overlapping Default-Start and Default-Stop runlevels (2 3 4 5) and (2 3 4 5). This should be fixed. Job for trousers.service failed because the control process exited with error code. See "systemctl status trousers.service" and "journalctl -xeu trousers.service" for details. invoke-rc.d: initscript trousers, action "restart" failed. × trousers.service - LSB: starts tcsd Loaded: loaded (/etc/init.d/trousers; generated) Active: failed (Result: exit-code) since Wed 2022-04-13 12:07:32 CEST; 9ms ago Docs: man:systemd-sysv-generator(8) Process: 552437 ExecStart=/etc/init.d/trousers start (code=exited, status=4) CPU: 12ms Apr 13 12:07:32 fan systemd[1]: Starting LSB: starts tcsd... Apr 13 12:07:32 fan trousers[552437]: Starting Trusted Computing daemon: tcsd Apr 13 12:07:32 fan trousers[552442]: stat: cannot statx '/dev/tpm*': No such file or directory Apr 13 12:07:32 fan trousers[552437]: TPM device owner for /dev/tpm* is not 'tss', this can cause problems. ... Apr 13 12:07:32 fan trousers[552443]: (warning). Apr 13 12:07:32 fan TCSD[552444]: TrouSerS ERROR: TCSD config file (/etc/tcsd.conf) must be user/group root/tss Apr 13 12:07:32 fan trousers[552445]: failed! Apr 13 12:07:32 fan systemd[1]: trousers.service: Control process exited, code=exited, status=4/NOPERMISSION Apr 13 12:07:32 fan systemd[1]: trousers.service: Failed with result 'exit-code'. Apr 13 12:07:32 fan systemd[1]: Failed to start LSB: starts tcsd. dpkg: error processing package trousers (--configure): installed trousers package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: trousers E: Sub-process /usr/bin/dpkg returned an error code (1) 100 [21/5014]mh@fan:~ $ sudo systemctl cat trousers It is correct that /dev/tpm does not exist on my system. I am investigating why. The init script says: if [ "$(echo /dev/tpm*)" != "/dev/tpm*" ] then log_warning_msg "device driver not loaded, skipping." exit 0 fi I think this is backwards. If nothing matches /dev/tpm, the result of the echo is equal "/dev/tpm*". In the following code, stat is called with /dev/tpm* as a parameters, resulting in the error message for PID 552442. -- System Information: Debian Release: bookworm/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.17.2-zgws1 (SMP w/12 CPU threads; PREEMPT) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=en Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages trousers depends on: ii libc6 2.33-7 ii libssl1.1 1.1.1n-1 ii lsb-base 11.1.0 ii tpm-udev 0.6 trousers recommends no packages. trousers suggests no packages. -- Configuration Files: /etc/tcsd.conf [Errno 13] Permission denied: '/etc/tcsd.conf' -- no debconf information