Le 17/02/2022 à 16:33, Uwe Kleine-König a écrit :
Package: libccid
Version: 1.5.0-1
Severity: important
Hello,
Hello Uwe,
I currently encounter:
uwe@taurus:~$ sudo apt install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 626 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libccid (1.5.0-1) ...
Failed to restart pcscd.service: Unit pcscd.socket is masked.
invoke-rc.d: initscript pcscd, action "restart" failed.
○ pcscd.service - PC/SC Smart Card Daemon
Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect;
vendor preset: enabled)
Active: inactive (dead)
Docs: man:pcscd(8)
dpkg: error processing package libccid (--configure):
installed libccid package post-installation script subprocess returned
error exit status 1
Errors were encountered while processing:
libccid
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is similar to #1001155, but a bit more hairy to fix, because
libccid restarts a service that isn't "owned" by the package.
I think the fix is to not restart pcscd when libccid is updated. Other
libs also don't care for their consumers and it's a well-known (to me at
least) duty to check for binaries using old versions of an updated lib
after a package update.
I restart pcscd so that the list of supported smart card readers is reloaded by
pcscd.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995814#15
Why do you install pcscd if you mask it?
What is your use case?
(Side note: libccid doesn't even transitively depend on pcscd, so I can
even make libccid's postinst fail with:
invoke-rc.d: unknown initscript, /etc/init.d/pcscd not found.
Yeah. Good point.
Thanks
--
Dr. Ludovic Rousseau