Failed new install

133 views
Skip to first unread message

Ron Walker

unread,
Mar 20, 2024, 2:24:41 PMMar 20
to weewx-user
I have been through the forum looking for this issue , but have not seen this issue addressed.

I;m trying to install weewx 5.02 on a fresh install of Debian Buster on a Raspberry Pi 3.  When I attempt to install weewx, I get the following:

ron@WeatherPi5:~ $ wget -qO - https://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list
deb [arch=all] http://weewx.com/apt/python3 buster main
ron@WeatherPi5:~ $ sudo apt update
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Get:2 http://weewx.com/apt/python3 buster InRelease [4,252 B]                  
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease                
Get:4 http://weewx.com/apt/python3 buster/main all Packages [4,988 B]
Fetched 9,240 B in 2s (5,992 B/s)  
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
ron@WeatherPi5:~ $ sudo apt install weewx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  python3-cheetah python3-configobj python3-ephem python3-usb
Suggested packages:
  python-cheetah-doc python3-markdown python3-memcache python-configobj-doc
  sqlite ftp httpd
The following NEW packages will be installed:
  python3-cheetah python3-configobj python3-ephem python3-usb weewx
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,370 kB of archives.
After this operation, 9,616 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:2 http://weewx.com/apt/python3 buster/main all weewx all 5.0.2-1 [1,556 kB]
Get:1 http://mirror.us.leaseweb.net/raspbian/raspbian bullseye/main armhf python3-configobj all 5.0.6-4 [35.8 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf python3-cheetah armhf 3.2.6-1+b1 [142 kB]
Get:4 http://mirror.us.leaseweb.net/raspbian/raspbian bullseye/main armhf python3-usb all 1.0.2-2 [38.9 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf python3-ephem armhf 3.7.7.1-1+b1 [596 kB]
Fetched 2,370 kB in 2s (1,376 kB/s)                                    
Preconfiguring packages ...
Selecting previously unselected package python3-configobj.
(Reading database ... 173112 files and directories currently installed.)
Preparing to unpack .../python3-configobj_5.0.6-4_all.deb ...
Unpacking python3-configobj (5.0.6-4) ...
Selecting previously unselected package python3-cheetah.
Preparing to unpack .../python3-cheetah_3.2.6-1+b1_armhf.deb ...
Unpacking python3-cheetah (3.2.6-1+b1) ...
Selecting previously unselected package python3-usb.
Preparing to unpack .../python3-usb_1.0.2-2_all.deb ...
Unpacking python3-usb (1.0.2-2) ...
Selecting previously unselected package python3-ephem.
Preparing to unpack .../python3-ephem_3.7.7.1-1+b1_armhf.deb ...
Unpacking python3-ephem (3.7.7.1-1+b1) ...
Selecting previously unselected package weewx.
Preparing to unpack .../archives/weewx_5.0.2-1_all.deb ...
Unpacking weewx (5.0.2-1) ...
Setting up python3-usb (1.0.2-2) ...
Setting up python3-ephem (3.7.7.1-1+b1) ...
Setting up python3-cheetah (3.2.6-1+b1) ...
Setting up python3-configobj (5.0.6-4) ...
Setting up weewx (5.0.2-1) ...
Using weewx:weewx as user:group
Creating /etc/default/weewx
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: feet,foot
dpkg: error processing package weewx (--configure):
 installed weewx package post-installation script subprocess returned error exit
 status 2
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
 weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
The result is that I cannot uninstall nor can I install weewx.  Any help would be appreciated.  If this issue has been addressed, please point me to it!  Thanks!

michael.k...@gmx.at

unread,
Mar 20, 2024, 2:54:05 PMMar 20
to weewx-user
Just guessing by the error message:

weectl.py: error: unrecognized arguments: feet,foot

Note that the measurement unit is always specified in the singular. That is, specify degree_C or foot, not degrees_C or feet.



vince

unread,
Mar 20, 2024, 3:00:46 PMMar 20
to weewx-user
check your altitude in weewx.conf - you possibly have a typo there.  It should look like:

    altitude = 365, foot    # Choose 'foot' or 'meter' for unit

Tom Keffer

unread,
Mar 20, 2024, 3:00:59 PMMar 20
to weewx...@googlegroups.com
I think Michael is on the right track. You may have typed "feet" instead of "foot". 

Debian remembers your prior responses, so now you have a bad response in its database and that's why your stuck. To purge the database, do this

  sudo echo PURGE | debconf-communicate weewx

then start all over.


--
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 on the web visit https://groups.google.com/d/msgid/weewx-user/eb1f08e7-58ec-4ae5-80cc-793d1b4518ecn%40googlegroups.com.

Ron Walker

unread,
Mar 20, 2024, 3:56:27 PMMar 20
to weewx-user
Thanks all so much for the quick replies!  I attempted to implement your suggestion and got the following:

ron@WeatherPi5:~ $ sudo echo PURGE | debconf-communicate weewx
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
0
debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Permission denied

vince

unread,
Mar 20, 2024, 4:05:53 PMMar 20
to weewx-user
try:
   sudo sh -c 'echo PURGE | debconf-communicate weewx'


Ron Walker

unread,
Mar 20, 2024, 5:22:22 PMMar 20
to weewx-user
Thank you!  That did it!  Now to customize!

R A Li

unread,
Jun 27, 2024, 11:38:54 AM (7 days ago) Jun 27
to weewx...@googlegroups.com
[necro-post from an infrequent contributor]

vince wrote:
> On Wednesday, March 20, 2024 at 12:56:27 PM UTC-7 Ron Walker wrote:
>
>> Thanks all so much for the quick replies! I attempted to implement your
>> suggestion and got the following:
>>
>> ron@WeatherPi5:~ $ sudo echo PURGE | debconf-communicate weewx
>> debconf: DbDriver "passwords" warning: could not open
>> /var/cache/debconf/passwords.dat: Permission denied
>> 0
>> debconf: DbDriver "config": could not write
>> /var/cache/debconf/config.dat-new: Permission denied
>>
> try:
> sudo sh -c 'echo PURGE | debconf-communicate weewx'

Thanks for the debconf-communicate trick; been a Deb user for decades
("Woody") and have never run into that.

In exchange:

sudo can read and pass through piped stdin

echo PURGE | sudo debconf-communicate weewx

R
--
R A Li

"Once you have tasted flight, you will walk the earth with your eyes turned
forever skyward, for there you have been, and there you long to return"
- Leonardo da Vinci (1452-1519)
Reply all
Reply to author
Forward
0 new messages