Difficulty installing on Debian

454 views
Skip to first unread message

choc...@gmail.com

unread,
Nov 11, 2021, 4:29:33 PM11/11/21
to weewx-user
On a fresh installation of Raspbian Bullseye (11.1)

Following the instructions at https://weewx.com/docs/debian.htm

wget -qO - https://weewx.com/keys.html | sudo apt-key add -
wget -qO - https://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list

sudo apt-get update yields the following:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY [long string of alphanumeric characters]

As a, probable, result
sudo apt-get install yields the following:
Unable to locate package weewx

What am I doing incorrectly?
Should I revert to Buster?



vince

unread,
Nov 11, 2021, 5:28:07 PM11/11/21
to weewx-user
No, just try adding the key one more time than run apt-get update again.

Same thing happened to me this morning setting up a new pi.

choc...@gmail.com

unread,
Nov 11, 2021, 5:48:25 PM11/11/21
to weewx-user
Thank you for the reply.

Same result.

Here is an an additional error that I did not notice before:
The repository 'http://weewx.com/apt/python3 buster InRelease' is not signed.

vince

unread,
Nov 11, 2021, 6:03:34 PM11/11/21
to weewx-user
You can force it with the --allow-unauthenticated flag if needed....

There does seem to be some difference in debian11 re: apt-key (which now shows as deprecated) but I didn't get too far trying to work it.

"sudo apt-key list" should show you which keys you have imported currently.  You should have two keys there, one from Matthew and one from Tom, in addition to your normal os repo keys

vince

unread,
Nov 11, 2021, 6:16:09 PM11/11/21
to weewx-user
FWIW - I just tried another newly reflashed SD card and the commands worked fine this time.   The only difference I can think of is perhaps there's some kind of timing issue under the hood.   This time I did the first command manually, then the second command manually.

When I did them by cutting+pasting the two lines at once, that's when I saw oddities occasionally.

No explanation.

choc...@gmail.com

unread,
Nov 11, 2021, 6:24:23 PM11/11/21
to weewx-user
I will re-flash the image and try again.

Thank you Vince.

vince

unread,
Nov 11, 2021, 6:26:40 PM11/11/21
to weewx-user
You shouldn't need to reflash - just force it (for now)

vince

unread,
Nov 11, 2021, 6:38:22 PM11/11/21
to weewx-user
update - if you haven't reflashed your system yet and it's still hosed up, can you try one thing for me ?

    wget -qO - https://weewx.com/keys.html | sudo gpg --dearmor > /etc/apt/trusted.gpg.d/weewx.gpg

Then if you run 'sudo apt-key list' it should show:

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
/etc/apt/trusted.gpg
--------------------
pub   rsa2048 2012-04-01 [SC]
      A0DA 38D0 D76E 8B5D 6388  7281 9165 938D 90FD DD2E
uid           [ unknown] Mike Thompson (Raspberry Pi Debian armhf ARMv6+VFP) <mptho...@gmail.com>
sub   rsa2048 2012-04-01 [E]

pub   rsa2048 2012-06-17 [SC]
      CF8A 1AF5 02A2 AA2D 763B  AE7E 82B1 2992 7FA3 303E
uid           [ unknown] Raspberry Pi Archive Signing Key
sub   rsa2048 2012-06-17 [E]

/etc/apt/trusted.gpg.d/weewx.gpg
--------------------------------
pub   rsa2048 2014-11-15 [SC]
      EAC2 0711 8C0B D050 B835  9313 A0CB 255B 75BF 977C
uid           [ unknown] Thomas Keffer (Author of weewx) <tke...@gmail.com>
sub   rsa2048 2014-11-15 [E]

pub   dsa1024 2014-01-28 [SC]
      1E9F F20B 86EF 78AB 3B45  4944 ED44 4FCC F0E2 B09E
uid           [ unknown] Matthew Wall (weewx) <mw...@users.sourceforge.net>
sub   elg1024 2014-01-28 [E]

On Thursday, November 11, 2021 at 3:24:23 PM UTC-8 choc...@gmail.com wrote:

choc...@gmail.com

unread,
Nov 12, 2021, 9:28:51 PM11/12/21
to weewx-user
I re-flashed and tried your suggestion.

Here is the result:
-bash: /etc/apt/trusted.gpg.d/weewx.gpg: Permission denied

choc...@gmail.com

unread,
Nov 12, 2021, 10:02:29 PM11/12/21
to weewx-user
Well, this is interesting.

On a lark, I tried running your command after sudo su -.  Viola, no error message.  Also,  I got the list you indicated above.

I then exited from sudo su and proceeded with the regular weewx installation instructions. 

All is right in the World!

Thank you very much, Vince.
Reply all
Reply to author
Forward
0 new messages