Package: perdition Version: 2.2-3.1+b1 Severity: grave Justification: renders package unusable X-Debbugs-Cc: s...@s73.work
Dear Maintainer, The error happens only on first install of the perdition, see instructions below on how to reproduce it. First I get an error during # apt install perdition Failed to stop perdition.service: Unit perdition.service not loaded. invoke-rc.d: initscript perdition, action "stop" failed. That happens only if there was no perdition package installed before. If you had perdition package installed and deleted later then error is not happening, since the command "apt purge" does not delete one generated file. So, to reproduce, either take host where perdition was never installed (apt purge alone will not help here!), or # apt purge perdition then delete generated file: # rm /run/systemd/generator.late/perdition.service Now "apt install" will fail. After installation fails, you will also not be able to delete the package: # apt purge perdition ... Failed to stop perdition.service: Unit perdition.service not loaded. invoke-rc.d: initscript perdition, action "stop" failed. dpkg: error processing package perdition (--remove): installed perdition package pre-removal script subprocess returned error exit status 5 dpkg: too many errors, stopping Here fix is easy, just edit /var/lib/dpkg/info/perdition.prerm and replace the line invoke-rc.d perdition stop with invoke-rc.d perdition stop || true Something similar must be done for the preinstall script in order to fix the install error. Here is full apt install output: # LANG=C apt install perdition Reading package lists... Done Building dependency tree... Done Reading state information... Done perdition is already the newest version (2.2-3.1+b1). 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 perdition (2.2-3.1+b1) ... Failed to stop perdition.service: Unit perdition.service not loaded. invoke-rc.d: initscript perdition, action "stop" failed. dpkg: error processing package perdition (--configure): installed perdition package post-installation script subprocess returned error exit status 5 Processing triggers for libc-bin (2.31-13+deb11u2) ... Errors were encountered while processing: perdition needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) Here is full apt purge output: # LANG=C apt purge perdition Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: perdition* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 468 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 19109 files and directories currently installed.) Removing perdition (2.2-3.1+b1) ... Failed to stop perdition.service: Unit perdition.service not loaded. invoke-rc.d: initscript perdition, action "stop" failed. dpkg: error processing package perdition (--remove): installed perdition package pre-removal script subprocess returned error exit status 5 dpkg: too many errors, stopping Errors were encountered while processing: perdition Processing was halted because there were too many errors. needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) -- System Information: Debian Release: 11.1 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-9-amd64 (SMP w/8 CPU threads) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=ru_RU:ru Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages perdition depends on: ii libc6 2.31-13+deb11u2 ii libdb5.3 5.3.28+dfsg1-0.8 ii libgdbm6 1.19-2 pn libidn11 <none> ii libnsl2 1.3.0-2 ii libpam0g 1.4.0-9+deb11u1 pn libpopt0 <none> ii libssl1.1 1.1.1k-1+deb11u1 pn libvanessa-adt1 <none> pn libvanessa-logger0 <none> pn libvanessa-socket2 <none> ii lsb-base 11.1.0 perdition recommends no packages. Versions of packages perdition suggests: pn perdition-ldap <none> pn perdition-mysql <none> pn perdition-odbc <none> pn perdition-postgresql <none> -- no debconf information