On Saturday, April 3, 2021 at 2:47:20 PM UTC-4 PJO wrote:
> I updated (via sudo apt upgrade, after stopping weewx) from 4.4 to 4.5.1 > on Ubuntu 20.04 Core opting to get an updated weewx.conf > > Configuration file '/etc/weewx/weewx.conf' > ==> Modified (by you or by a script) since installation. > ==> Package distributor has shipped an updated version. > What would you like to do about it ? Your options are: > Y or I : install the package maintainer's version > N or O : keep your currently-installed version > D : show the differences between the versions > Z : start a shell to examine the situation > The default action is to keep your current version. > *** weewx.conf (Y/I/N/O/D/Z) [default=N] ? Y > Installing new version of config file /etc/weewx/weewx.conf ... > Installing new version of config file /etc/weewx/weewx.conf.dist ... > using debconf configuration values from previous install > update-rc.d: error: unable to read /etc/init.d/weewx > it would appear that somewhere along the line you deleted the file /etc/init.d/weewx > dpkg: error processing package weewx (--configure): > installed weewx package post-installation script subprocess returned > error exit status 1 > Processing triggers for systemd (245.4-4ubuntu3.5) ... > Errors were encountered while processing: > weewx > E: Sub-process /usr/bin/dpkg returned an error code (1) > dpkg failed hard because of the missing /etc/init.d/weewx debian is pretty good about not leaving things in a random state, even after dpkg failures. but it can be rather complicated to extract yourself from such a situation. -- 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/5c99a622-c3cd-419e-a9ad-f2b5772aac22n%40googlegroups.com.