Bug#1070023: dict-freedict-eng-jpn: Failure to stop dictd.service on purge even if unit is not loaded

2024-04-29 Thread Sebastian Humenda
Hi

>when uninstalling (purging) the package, I got the following error message:
>
>Failed to stop dictd.service: Unit dictd.service not loaded.
>invoke-rc.d: initscript dictd, action "stop" failed.
>
>Apt reports that the subprocess returned error code 5 (five).

That is strange indeed. Checks are in place:
if command -v dictdconfig # update dictd's DB
then
dictdconfig -w
fi
if dpkg -s dictd 2> /dev/null|grep -qe '^Status:.*installed'
then
invoke-rc.d dictd stop
invoke-rc.d dictd start
fi

What is the output of
dpkg -s dictd 2> /dev/null|grep -qe '^Status:.*installed'

and return code?

Cheers
Sebastian


signature.asc
Description: PGP signature


Bug#1070023: dict-freedict-eng-jpn: Failure to stop dictd.service on purge even if unit is not loaded

2024-04-28 Thread inasprecali
Package: dict-freedict-eng-jpn
Version: 2022.12.07-2
Severity: normal
X-Debbugs-Cc: inasprec...@disroot.org

Dear Maintainer,

when uninstalling (purging) the package, I got the following error message:

Failed to stop dictd.service: Unit dictd.service not loaded.
invoke-rc.d: initscript dictd, action "stop" failed.

Apt reports that the subprocess returned error code 5 (five).

I did not have dictd running as a service, so this error was unexpected,
but I got it regardless.  The package seems to have been purged successfully
anyway.  Thus, it is only a minor annoyance, but the post-build script should
check properly whether dictd.service is actually running before attempting
to stop it.

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-20-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

dict-freedict-eng-jpn depends on no packages.

dict-freedict-eng-jpn recommends no packages.

Versions of packages dict-freedict-eng-jpn suggests:
pn  dict | kdict | gnome-dictionary | goldendict  
pn  dictd | dicod