This is on a plain debian 12;

root@server~# apt 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, 6148 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 126755 files and directories currently installed.)
Removing weewx (4.10.2-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)

and then if I try:

root@server~# apt install weewx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
weewx is already the newest version (4.10.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up weewx (4.10.2-1) ...
using debconf configuration values from previous install
Failed to start weewx.service: Unit weewx.service not found.
invoke-rc.d: initscript weewx, action "start" failed.
Unit weewx.service could not be found.
dpkg: error processing package weewx (--configure):
 installed weewx package post-installation script subprocess returned error 
exit status 5
Errors were encountered while processing:
 weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@server~# apt --reinstall install weewx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not 
upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for weewx:amd64

Looks like something is amiss here.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0275acc1-401f-4e0a-9fc1-36233c2d434cn%40googlegroups.com.

Reply via email to