Your message dated Mon, 04 Apr 2022 17:04:17 +0000
with message-id <e1nbq7l-000g3d...@fasolo.debian.org>
and subject line Bug#999659: fixed in perdition 2.2-3.2
has caused the Debian Bug report #999659,
regarding perdition: failed to install, failed to uninstall (error in 
initscript)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
999659: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=999659
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Source: perdition
Source-Version: 2.2-3.2
Done: Marcos Talau <mar...@talau.info>

We believe that the bug you reported is fixed in the latest version of
perdition, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 999...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marcos Talau <mar...@talau.info> (supplier of updated perdition package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 31 Mar 2022 22:39:14 -0300
Source: perdition
Architecture: source
Version: 2.2-3.2
Distribution: unstable
Urgency: medium
Maintainer: Simon Horman <ho...@debian.org>
Changed-By: Marcos Talau <mar...@talau.info>
Closes: 999659
Changes:
 perdition (2.2-3.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Add exit code true after invoke-rc.d in the files below (Closes: #999659).
     Thanks to Sergey Spiridonov.
     - perdition-ldap.postinst
     - perdition-ldap.prerm
     - perdition-mysql.postinst
     - perdition-mysql.prerm
     - perdition-odbc.postinst
     - perdition-odbc.prerm
     - perdition-postgresql.postinst
     - perdition-postgresql.prerm
     - perdition.postinst
     - perdition.preinst
     - perdition.prerm
Checksums-Sha1:
 7109379a41eafa63166fb6f944948f11d4d81762 2272 perdition_2.2-3.2.dsc
 79092436c5c05c24b80283d57de32fc17ef2d104 13736 perdition_2.2-3.2.debian.tar.xz
 cec557e914f5863c01af3adc0be432b44779dfb1 7009 
perdition_2.2-3.2_source.buildinfo
Checksums-Sha256:
 524296d2f25a46fb84f039eeff1aa152b97662f7c3ad2daa27c44433477edc0f 2272 
perdition_2.2-3.2.dsc
 b4525350dbdc49db54ce102f3fd7bdd138f31deee6ed1390a914c9cdf0dd3589 13736 
perdition_2.2-3.2.debian.tar.xz
 e8cd28ed912422eeb694a74584306751b5f98affa1c7d9c09da2db7175d2b5b5 7009 
perdition_2.2-3.2_source.buildinfo
Files:
 15a3d10524eb6ebf7f970d4b64ad848a 2272 mail optional perdition_2.2-3.2.dsc
 596af75515c66c8618ec8a7d87d2cff3 13736 mail optional 
perdition_2.2-3.2.debian.tar.xz
 500ca1a04b54f4e2e9efdff969431655 7009 mail optional 
perdition_2.2-3.2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEENX3LDuyVoBrrofDS3mO5xwTr6e8FAmJIe4oACgkQ3mO5xwTr
6e/UsRAAl140d41wtGbJbRWNqZ/Q/adII4EJNi71VJLG3QEpZSU0SRwrCdLW1TL5
0cTKQhqX1dYXpHbj4vQwy7DstrBzajkyi9626IFEIQqn0JSH7kHhax/c7PT11f4s
nzfeSGWQFE6b5cpamwJy2c02A2TEu412zDDm31WCMtN2t0pFyi9MVQlCZv1h6GbN
czd4XlT/5tVc7//FSdf9hgYkjd/oN0qukhjADMUXQ05J0etwQCFIP0V6tJOy6yxM
L80hSfS2vF59w/kUV/ALj8WLeGSwlLZhWkBVJEcJ8p3PqvBFg3IVj6kdEjURmWZD
cSrBf84H5nuDl6asgIZu/rSFpOzsLrFtiv9V2S+nppKgdRIb9P7V21Dtgn/JYWJb
Qqi5J4957JS9bFjyH4Y5UMGB4WBfIe6T3qz0QWHLPZBQGuJEWyCyOfTnfB9fyjrA
9Abr4xdZkTNaTLs199Tmd98fxhAXGM+BqXZ7AAJOaKWgRK8MLgcAqQs5RBuO9ask
NLWgEsLw72crQEt3T7v3IV60icajzleYSh7L8f30hPY0C4kWQzAR5ORScObiM8kT
DF7Vwn5IovNI/tr5iPfdb7JKcGjCKi1BcMt/nsQ5lFV3vCo4QTtStLHSQzNLErgp
wEFQ9CZ9IlZixqoPKqvQS0j5at0ARRoYMPgZW3iXZzTNlCAdgN8=
=p6Ip
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to