kevin,

please post the contents of /var/log/syslog from the period of time when you 
did the 'purge'.  when dpkg fails on pre- or post-inst, it means that the 
installation package encountered a configuration that it was not expecting and 
that it was unable to resolve.  i'd love to know what state your system is in 
so that we can make the dpkg configuration more robust, and only with that 
information can i tell you exactly what you should do to clean it up.

m

> On 05 Jan 2023, at 02:34, Kevin Key <kevin...@gmail.com> wrote:
> 
> pi@ubuntu:~ $ sudo apt-get purge weewx
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following packages will be REMOVED:
>   weewx*
> 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
> 1 not fully installed or removed.
> After this operation, 6,144 kB disk space will be freed.
> Do you want to continue? [Y/n] y
> (Reading database ... 85721 files and directories currently installed.)
> Removing weewx (4.9.1-1) ...
> Failed to stop weewx.service: Unit weewx.service not loaded.
> invoke-rc.d: initscript weewx, action "stop" failed.
> dpkg: error processing package weewx (--remove):
>  installed weewx package pre-removal script subprocess returned error exit 
> status 5
> dpkg: too many errors, stopping
> Errors were encountered while processing:
>  weewx
> Processing was halted because there were too many errors.
> E: Sub-process /usr/bin/dpkg returned an error code (1)

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/C2E3017C-87E0-48D5-B59F-8D9D1487763E%40gmail.com.

Reply via email to