On Sun, 5 Dec 2021 13:09:01 +0100 Yuri D'Elia <wav...@thregr.org> wrote: > Package: pcscd > Version: 1.9.5-1 > Severity: normal > > Errors were encountered while processing: > pcscd > E: Sub-process /usr/bin/dpkg returned an error code (1) > Setting up pcscd (1.9.5-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 (/lib/systemd/system/pcscd.service; indirect; vendor > preset: enabled) > Active: inactive (dead) > Docs: man:pcscd(8) > > I consider this a bug. > > During an upgrade, if the service isn't started, the upgrade script > shouldn't fail trying to restart it.
I can't reproduce this problem. I have masked both pcscd.socket and pcscd.service: $ systemctl status pcscd.socket ○ pcscd.socket Loaded: masked (Reason: Unit pcscd.socket is masked.) Active: inactive (dead) $ systemctl status pcscd.service ○ pcscd.service Loaded: masked (Reason: Unit pcscd.service is masked.) Active: inactive (dead) But restart works fine (no restart and no error): $ sudo invoke-rc.d pcscd restart $ I can also reinstall the package with no error: $ sudo dpkg -i pcscd_1.9.5-1_amd64.deb (Lecture de la base de données... 261489 fichiers et répertoires déjà installés.) Préparation du dépaquetage de pcscd_1.9.5-1_amd64.deb ... Dépaquetage de pcscd (1.9.5-1) sur (1.9.5-1) ... Paramétrage de pcscd (1.9.5-1) ... Traitement des actions différées (« triggers ») pour man-db (2.9.4-2) ... I note I get the same error if I use service(8) instead of invoke-rc.d(8) to restart pcscd: $ sudo service pcscd restart Failed to restart pcscd.service: Unit pcscd.service is masked. Have you modified invoke-rc.d configuration or something like that? What do you get if you run "sudo invoke-rc.d pcscd restart"? Thanks