Hello,If you look closely at the log below...
I installed vrfydmn and tuptime, but they failed to configure. I don't
have to have them, so I decided to remove them, but I cannot uninstall
them either. I tried with apt and with dpkg --force-all.
A log is included below.
If someone could tell me how to tell the system that they're not
installed, I could remove them by hand.
Or maybe you have an idea how to uninstall them.
# dpkg --purge --force-all vrfydmn tuptime... /etc/init.d/vrfydmn is failing...
(Reading database ... 2636897 files and directories currently installed.) Removing vrfydmn (0.11.0-4) ...
/etc/init.d/vrfydmn: line 46: stop_daemon: command not found
invoke-rc.d: initscript vrfydmn, action "stop" failed.
dpkg: error processing package vrfydmn (--purge):...which is invoked by the package pre-remove script. Thus removal fails.
installed vrfydmn package pre-removal script subprocess returned error
On 7/11/26 04:11, David Niklas wrote:OP /is/ running as root: the error message would be different
Hello,
I installed vrfydmn and tuptime, but they failed to configure. I don't
have to have them, so I decided to remove them, but I cannot uninstall
them either. I tried with apt and with dpkg --force-all.
A log is included below.
If someone could tell me how to tell the system that they're not
installed, I could remove them by hand.
Or maybe you have an idea how to uninstall them.
Thanks!
# dpkg --purge --force-all vrfydmn tuptime
(Reading database ... 2636897 files and directories currently installed.) Removing vrfydmn (0.11.0-4) ...
/etc/init.d/vrfydmn: line 46: stop_daemon: command not found
invoke-rc.d: initscript vrfydmn, action "stop" failed.
dpkg: error processing package vrfydmn (--purge):
installed vrfydmn package pre-removal script subprocess returned error exit status 1 Starting vrfydmn
You must specify at least one of --file, --ldap or --sql
invoke-rc.d: initscript vrfydmn, action "start" failed.
dpkg: error while cleaning up:
installed vrfydmn package post-installation script subprocess returned error exit status 1 Removing tuptime (5.2.4) ...
Stopping tuptime....
ERROR:root:Check DB path "/var/lib/tuptime": [Errno 13] Permission
denied: '/var/lib/tuptime' invoke-rc.d: initscript tuptime, action "stop" failed. dpkg: error processing package tuptime (--purge):
installed tuptime package pre-removal script subprocess returned error exit status 1 Errors were encountered while processing:
vrfydmn
tuptime
Are you running as root, if no, please do so.
Also try:No. Autoremove is to remove packages which aren't "needed" anymore
$ apt-get --autoremove purge <PKG-NAME>
so in your case it is
/var/lib/dpkg/info/vrfydmn.prerm
One way to get out of that is to insert at the top of that script
an "exit 0", which makes the script always succeed, then try your
dpkg --purge vrfydmn
(same for your other package).
BTW: if anyone knows a more elegant "knob" for that, I'd like to
know :-)
On Sat, Jul 11, 2026 at 06:59:14 +0200, tomas@tuxteam.de wrote:Thanks for confirming!
so in your case it is
/var/lib/dpkg/info/vrfydmn.prerm
One way to get out of that is to insert at the top of that script
an "exit 0", which makes the script always succeed, then try your
dpkg --purge vrfydmn
(same for your other package).
BTW: if anyone knows a more elegant "knob" for that, I'd like to
know :-)
No, that's been the standard advice for broken init.d scripts for
many years now.
Of course, I would accompany that by telling the OPOr just wait to the next reboot: no init script -> no restart
to find any vrfydmn processes and kill them manually, which is what
the init.d script should have done.
The only other advice you can give is "debug the init.d script soNote that I just recommended short-circuiting the pre-remove, thus
that it works", which is usually beyond the abilities of the people
asking these questions.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 498677:21:03 |
| Calls: | 212 |
| Calls today: | 3 |
| Files: | 910 |
| D/L today: |
31 files (22,593K bytes) |
| Messages: | 69,826 |