I am not able to upgrade after upgrading Weewx 5.0 on Ubuntu 23.10
Any thoughts are greatly appreciated!
Setting up weewx (5.0.2-1) ...
Using weewx:weewx as user:group
Saving old defaults to /etc/default/weewx-20240315073503
Creating /etc/default/weewx
Using debconf configuration values from previous install
Using configuration file /etc/weewx/weewx.conf
Processing configuration file /etc/weewx/weewx.conf
Traceback (most recent call last):
File "/usr/share/weewx/weectl.py", line 74, in <module>
main()
File "/usr/share/weewx/weectl.py", line 66, in main
namespace.func(namespace)
File "/usr/share/weewx/weectllib/__init__.py", line 121, in dispatch
namespace.action_func(config_dict, namespace)
File "/usr/share/weewx/weectllib/station_cmd.py", line 311, in reconfigure_station
weectllib.station_actions.station_reconfigure(config_dict=config_dict,
File "/usr/share/weewx/weectllib/station_actions.py", line 164, in station_reconfigure
config_config(config_dict,
File "/usr/share/weewx/weectllib/station_actions.py", line 206, in config_config
config_units(config_dict, unit_system=unit_system, no_prompt=no_prompt)
File "/usr/share/weewx/weectllib/station_actions.py", line 384, in config_units
config_dict['StdReport']['Defaults']['unit_system'] = final_unit_system
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/configobj/__init__.py", line 553, in __getitem__
val = dict.__getitem__(self, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'Defaults'
dpkg: error processing package weewx (--configure):
installed weewx package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)