Installation problems

125 views
Skip to first unread message

Auchtermuchty Weather

unread,
Nov 4, 2024, 8:58:50 AM11/4/24
to weewx-user
I'm trying to install the latest version, 5.1, onto a card for my test Pi.

I installed bookworm, had problems installing the package until I used the instructions in https://weewx.com/apt/.

Eventually I removed it with  sudo apt-get remove --purge weewx.

However there are still issues. This is what was displayed on the screen - -3.321637 is the station's longitude. And as you can see, the service isn't installed.

pi@TestWeeWx5:~ $ sudo apt install weewx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  sqlite ftp httpd python3-dev python3-pip
The following NEW packages will be installed:
  weewx
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,561 kB of archives.
After this operation, 5,754 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package weewx.
(Reading database ... 64090 files and directories currently installed.)
Preparing to unpack .../archives/weewx_5.1.0-4_all.deb ...
Unpacking weewx (5.1.0-4) ...
Setting up weewx (5.1.0-4) ...
Using weewx:weewx as user:group
User pi is already in group weewx
Installing udev rules
usage: weectl.py -v|--version
       weectl.py -h|--help
       weectl.py database --help
       weectl.py debug --help
       weectl.py device --help
       weectl.py extension --help
       weectl.py import --help
       weectl.py report --help
       weectl.py station --help
weectl.py: error: unrecognized arguments: -3.321637 -3.321637
dpkg: error processing package weewx (--configure):
 installed weewx package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@TestWeeWx5:~ $
pi@TestWeeWx5:~ $ sudo systemctl start weewx
Failed to start weewx.service: Unit weewx.service not found.

Tom Keffer

unread,
Nov 4, 2024, 10:02:50 AM11/4/24
to weewx...@googlegroups.com
I suspect that you have a corrupted debconf database. Be sure that when you remove WeeWX, you use

  sudo apt purge weewx

There is no "--purge" flag.

To fix, try flushing the debconf database:

  sudo echo PURGE | debconf-communicate weewx

Then install again.

-tk

--
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+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/28eb2030-5e8a-410b-830f-c4a828201849n%40googlegroups.com.

Auchtermuchty Weather

unread,
Nov 6, 2024, 3:13:52 AM11/6/24
to weewx-user
Yes that fixed it, thanks. I have no idea where the idea of using --purge came from, either there's a dodgy page out there or I misread one.
Reply all
Reply to author
Forward
0 new messages