This is the fastest way to install WeeWX on Debian-based systems, including Ubuntu, Mint, and Raspbian.
Tell apt where to find the WeeWX releases. This only has to be done once - the first time you install.
wget -qO - http://weewx.com/keys.html | sudo apt-key add - wget -qO - http://weewx.com/apt/weewx.list | sudo tee /etc/apt/sources.list.d/weewx.list
Use apt-get to install WeeWX. When you are done, WeeWX will be running in the background as a daemon.
sudo apt-get update sudo apt-get install weewx
After 5 to 30 minutes, open the station web page in a web browser. You should see your station information and data.
This will remove WeeWX, leaving any data intact.
sudo apt-get remove weewx