Debian apt settings

69 views
Skip to first unread message

Peter Whisker

unread,
Sep 17, 2020, 3:39:09 AM9/17/20
to weewx-user
Hi,
I have been using weewx successfully for 18 months and am looking to move from python2 to python3. I looked at http://www.weewx.com/docs/debian.htm and although the instructions seem clear the end result fails to connect to a valid repository.

The commands add the following lines to the repository
root@network2:~# wget -qO - http://weewx.com/apt/weewx-python3.list
deb [arch=all] http://weewx.com/apt/python3 buster main
root@network2:~# wget -qO - http://weewx.com/apt/weewx-python2.list
deb [arch=all] http://weewx.com/apt/python2 squeeze main
root@network2:~#

However neither of these repositories work. I have found that the line
deb [arch=all] http://weewx.com/apt squeeze main
works for the Python2 repository but replacing "squeeze" with "buster" does not product a Python3 one.

Could this get fixed (either documentation or repository) and also what is the Python3 repository called please.

Thanks
Peter

Peter Whisker

unread,
Sep 17, 2020, 3:47:14 AM9/17/20
to weewx-user
Actually, the link
root@network2:~# wget -qO - http://weewx.com/apt/weewx-python2.list
deb [arch=all] http://weewx.com/apt/python2 squeeze main

probably does work, but the Python3 one definitely doesnt.

Peter

Tom Keffer

unread,
Sep 17, 2020, 8:08:52 AM9/17/20
to weewx-user
We need more information than "neither of these repositories work." What went wrong? 

It's not a simple matter of replacing squeeze with buster. You also have to use a different URL. http://weewx.com/apt/python3, instead of http://weewx.com/apt/python2

Best to follow the instructions explicitly: dId you do the full "wget" command, including the tee?

wget -qO - http://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list

This should be followed by update and install. If that doesn't work, please be explicit about what the problem is.

-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 on the web visit https://groups.google.com/d/msgid/weewx-user/cbfd9082-2203-4183-aa6a-bace2f1f7360n%40googlegroups.com.

Peter Whisker

unread,
Sep 17, 2020, 8:50:12 AM9/17/20
to weewx-user
Hi

I had done that and confirmed that the repositories were correct, and done an apt update but  then apt search or apt install --reinstall weewx couldn't find it. In the end, I downloaded the Python3 package and installed it manually. I had to update the interceptor plugin but it's all now working on python3. Meanwhile, after a few more apt updates, it is suddenly started showing up again in apt search. I've been using Linux for over 20 years and Debian is my preferred distro. But I can't account for what I saw! I am actually running Debian Bullseye so things are occasionally a little bleeding edge.

I've been running weewx for about 18 months since I got a Aercus Weather Ranger (FineOffset clone). Weewx is great - my site is at https://wx.whisker.org.uk/ - you can choose between Belchertown, neowx and sofaskin skins.

I noticed another person had a similar issue also, but it seems to be OK now.

Regards
Peter
Reply all
Reply to author
Forward
0 new messages