Agree.
Check to verify that you have a dpkg installation installed - it should look like this:
$ dpkg -l weewx
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii weewx 5.2.0-1 all weather software
And check to see what's where:
vagrant@weewx-dpkg:~$ ls -al /usr/bin/wee* /usr/local/bin/wee*
ls: cannot access '/usr/local/bin/wee*': No such file or directory
-rwxr-xr-x 1 root root 313 Oct 6 01:16 /usr/bin/weectl
-rwxr-xr-x 1 root root 313 Oct 6 01:16 /usr/bin/weewxd
Regardless, /usr/local/bin is definitely very very odd.
If you have stuff in both places for some reason, /usr/local/bin is going to win because that comes first in your $PATH.
vagrant@weewx-dpkg:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
If so, you might try "/usr/bin/weectl" and "/usr/bin/weewxd" and give the full pathname to see if it magically works as a quick test. That might help verify your dpkg installation (if one is there) is ok.
If you have both a dpkg and some old/other installation and you want to use the dpkg one:
- at a minimum rename the wee* stuff in /usr/local/bin (so it's not found)
- verify the contents of your weewx.service file
- which should be in /usr/lib/systemd/system
- and it should point to your weewx.conf in /etc/weewx
- if the service file is messed up, the template to copy from is in /etc/weewx/systemd
- and "sudo systemctl daemon-reload" if you mess with systemd service files
There is a more remote possibility that you might even have two weewx.service files installed. The dpkg installs under /usr but you might have more old cruft under /etc which will take precedence unfortunately. I've seen this happen to me ages ago with running some upgrade scenarios. A clean dpkg installation would look like:
vagrant@weewx-dpkg:~$ ls -al /usr/lib/systemd/system/wee*service /etc/systemd/system/wee*
ls: cannot access '/etc/systemd/system/wee*': No such file or directory
-rw-r--r-- 1 root root 424 Jan 7 20:43 /usr/lib/systemd/system/weewx.service
-rw-r--r-- 1 root root 932 Jan 7 20:43 /usr/lib/systemd/system/weewx@.service
But if you have two installations in different places you'll have to pick one and clean up the other...