Problem with upgrade

211 views
Skip to first unread message

colin....@gmail.com

unread,
Mar 29, 2021, 7:51:58 PM3/29/21
to weewx-user
Hi Team

I'm attempting to upgrade from 4.0.0 to the latest version via Deb. Did a sudo apt-get update, then sudo apt-get install weewx as per the guide and came up with this error ..

The following packages have unmet dependencies:

 weewx : Depends: python3-cheetah but it is not installable

E: Unable to correct problems, you have held broken packages.

Tried to install it using sudo apt install python3-cheetah which failed

Tried using Pip3 which said 

Requirement already satisfied: Cheetah3 in /usr/local/lib/python3.5/dist-packages


Not quite sure where to go from here, any help appreciated.


Cheers

Colin

colin....@gmail.com

unread,
Mar 29, 2021, 8:09:52 PM3/29/21
to weewx-user

Almost forgot, I'm on a Pi running Linux raspberrypi 4.14.71-v7+

I see a couple of comments about using Python2- cheetah?? I'm not not Linux savvy enough to know how to get around this one sorry


Cheers

Colin

John Kline

unread,
Mar 29, 2021, 8:11:12 PM3/29/21
to weewx...@googlegroups.com
Please run:
sudo apt update
sudo apt full-upgrade

Then try your install.

On Mar 29, 2021, at 4:52 PM, colin....@gmail.com <colin....@gmail.com> wrote:

Hi Team
--
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/8fae1af2-d0a6-40dc-bb75-3944e3af513an%40googlegroups.com.

Colin Larsen

unread,
Mar 29, 2021, 8:24:29 PM3/29/21
to weewx-user
Thanks John, underway now, will post results when it finishes

Colin Larsen

unread,
Mar 29, 2021, 10:04:05 PM3/29/21
to weewx-user
OK, we're gonna need a bigger SD card! Lol, ran out of space on the 8 gig card, might as well just do a rebuild and then restore by backed up files :)

Colin

Colin Larsen

unread,
Mar 30, 2021, 9:41:47 PM3/30/21
to weewx-user
Well this turned into a bit of a nightmare. After purchasing a bigger sd card and copying the complete original card over i couldn't get the Pi to boot. No problems I thought, I'll just go back to the original again ....but no, that doesn't want to boot either! 

So .....complete rebuild of the system later (thank goodness I backed up 99% of the files I needed - and now I know a few more I need to backup as well!)

I did manage to mount the original sd card on my Mac and recover some of the other files that I needed as well, so all was not lost.

The upshot is I'm now on Weewx 4.4.0 with a nice big sd card. It was a nice exercise but not one to repeat too often :)

Thanks
Colin

vince

unread,
Mar 30, 2021, 11:04:27 PM3/30/21
to weewx-user
For the future, never 'copy' a possibly bad SD to a new SD card.  All you're doing then is switching which physical media the bad bits are on.

Reimage the os onto the new card with Balena Etcher or similar imaging software, put it in the pi,  and reinstall any added software like weewx onto it.  Then restore your database.    'That' is a clean reinstallation.

Colin Larsen

unread,
Mar 30, 2021, 11:33:40 PM3/30/21
to weewx-user
Hi Vince

Well when I started the process I didn't actually think that the sdcard was bad, I just needed more space to do the OS and Weewx upgrade. And then ...... your second suggestion is exactly what ended up happening :)

But certainly a valuable lesson in the vital things to have backed up other than what's covered in the general documentation

Cheers
Colin

On Wed, 31 Mar 2021 at 16:04, vince <vince...@gmail.com> wrote:
For the future, never 'copy' a possibly bad SD to a new SD card.  All you're doing then is switching which physical media the bad bits are on.

Reimage the os onto the new card with Balena Etcher or similar imaging software, put it in the pi,  and reinstall any added software like weewx onto it.  Then restore your database.    'That' is a clean reinstallation.

--
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.
Reply all
Reply to author
Forward
0 new messages