#1070023 dict-freedict-eng-jpn: Failure to stop dictd.service on purge even if unit is not loaded #1070023
- Package:
- dict-freedict-eng-jpn
- Source:
- dict-freedict-eng-jpn
- Submitter:
- inasprecali
- Date:
- 2024-04-29 06:03:04 UTC
- Severity:
- normal
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.
Hi
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
Hi
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