• Re: Cannot remove vrfydmn and tuptime

    From tomas@3:633/10 to All on Saturday, July 11, 2026 07:00:01
    On Fri, Jul 10, 2026 at 10:11:58PM -0400, David Niklas wrote:
    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.
    If you look closely at the log below...
    # 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.
    ... /etc/init.d/vrfydmn is failing...
    dpkg: error processing package vrfydmn (--purge):
    installed vrfydmn package pre-removal script subprocess returned error
    ...which is invoked by the package pre-remove script. Thus removal fails.
    You find that pre-remove script here:
    /var/lib/dpkg/info/<your package>.prerm
    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 :-)
    Cheers
    --
    t


    --- PyGate Linux v1.5.18
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From tomas@3:633/10 to All on Saturday, July 11, 2026 07:10:02
    On Sat, Jul 11, 2026 at 06:41:36AM +0200, john doe wrote:
    On 7/11/26 04:11, David Niklas wrote:
    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.
    OP /is/ running as root: the error message would be different
    otherwise.
    Also try:

    $ apt-get --autoremove purge <PKG-NAME>
    No. Autoremove is to remove packages which aren't "needed" anymore
    because they have been installed as dependencies of other packages
    that have been uninstalled in the meantime (for that, the tool has
    to have a notion of "this package has been installed manually vs.
    that one has been pulled in as dependency", which apt-get has but
    dpkg lacks, BTW).
    Cheers
    --
    t


    --- PyGate Linux v1.5.18
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Greg Wooledge@3:633/10 to All on Saturday, July 11, 2026 15:00:01
    On Sat, Jul 11, 2026 at 06:59:14 +0200, tomas@tuxteam.de wrote:
    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 OP
    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 so
    that it works", which is usually beyond the abilities of the people
    asking these questions.

    --- PyGate Linux v1.5.18
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From tomas@3:633/10 to All on Saturday, July 11, 2026 18:00:01
    On Sat, Jul 11, 2026 at 08:52:16AM -0400, Greg Wooledge wrote:
    On Sat, Jul 11, 2026 at 06:59:14 +0200, tomas@tuxteam.de wrote:
    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.
    Thanks for confirming!
    Of course, I would accompany that by telling the OP
    to find any vrfydmn processes and kill them manually, which is what
    the init.d script should have done.
    Or just wait to the next reboot: no init script -> no restart
    (I know, I know :)
    The only other advice you can give is "debug the init.d script so
    that it works", which is usually beyond the abilities of the people
    asking these questions.
    Note that I just recommended short-circuiting the pre-remove, thus
    bypassing the init script altogether...
    Cheers
    --
    t


    --- PyGate Linux v1.5.18
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)