New Install - Debian 9 Stretch

470 views
Skip to first unread message

Dave Walker

unread,
Nov 9, 2017, 4:31:24 PM11/9/17
to weewx-user

My new install on a Debian 9 PC is off to a rocky start. I used the instructions at the link below:


Sudo is not installed in a fresh version of Debian 9, so I began as root.

davew@debian:~$ su
Password: 
root@debian:/home/davew# wget -qO - http://weewx.com/keys.html | apt-
key add -
gpg: keydb_get_keyblock failed: Value not found
gpg: keydb_get_keyblock failed: Value not found
root@debian:/home/davew# wget -qO - http://weewx.com/keys.html | sudo
apt-key add -
gpg: keydb_get_keyblock failed: Value not found
gpg: keydb_get_keyblock failed: Value not found
root@debian:/home/davew# wget -qO - http://weewx.com/apt/weewx.list |
sudo tee /etc/apt/sources.list.d/weewx.list
deb [arch=all] http://weewx.com/apt/ squeeze main

root@debian:/home/davew# whoami
root
root@debian:/home/davew# apt-get update
Ign:1 http://ftp.ca.debian.org/debian stretch
InRelease                                           
Hit:2 http://ftp.ca.debian.org/debian stretch-updates
InRelease                                   
Hit:3 http://security.debian.org/debian-security stretch/updates
InRelease
Hit:4 http://ftp.ca.debian.org/debian stretch
Release                    
Get:5 http://weewx.com/apt squeeze InRelease [2,537
B]                   
Ign:5 http://weewx.com/apt squeeze
InRelease                                                              
   
Get:7 http://weewx.com/apt squeeze/main all Packages [2,581
B]                                               
Fetched 5,118 B in 7s (730
B/s)                                                                   
           
Reading package lists... Done
W: http://ftp.ca.debian.org/debian/dists/stretch-updates/InRelease: The
key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is
not readable by user '_apt' executing apt-key.
W: http://security.debian.org/debian-security/dists/stretch/updates/InR
elease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as
the file is not readable by user '_apt' executing apt-key.
W: http://ftp.ca.debian.org/debian/dists/stretch/Release.gpg: The
key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is
not readable by user '_apt' executing apt-key.
W: http://weewx.com/apt/dists/squeeze/InRelease: The key(s) in the
keyring /etc/apt/trusted.gpg are ignored as the file is not readable by
user '_apt' executing apt-key.
W: GPG error: http://weewx.com/apt squeeze InRelease: The following
signatures couldn't be verified because the public key is not
available: NO_PUBKEY ED444FCCF0E2B09E
W: The repository 'http://weewx.com/apt squeeze InRelease' is not
signed.
N: Data from such a repository can't be authenticated and is therefore
potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user
configuration details.


It appears that Weewx is expecting access to the squeeze repository. but I am running stretch??

Can anybody set me on the right path. I sure didn't get far on my own. Help would be appreciated!

Dave W.

Glenn McKechnie

unread,
Nov 9, 2017, 4:45:58 PM11/9/17
to weewx...@googlegroups.com
Dave,

Try using su - rather than just su. Note the dash (-) after su, that
dash fully sets your environment for root which should help with the
gpg issue and the remaining errors to disappear.

Don't worry about the squeeze line in the weewx repo , it should work
regardless.
Cheers
Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

Dave Walker

unread,
Nov 10, 2017, 10:19:45 AM11/10/17
to weewx-user
Thanks for the noobi help, Glenn. Your recommendations worked, and I now have a Weewx simulator running. I had never previously encountered the use of "su -". There is always something to be learned!

Dave W.

Michael9778

unread,
Apr 12, 2018, 4:50:36 AM4/12/18
to weewx-user
I had the same problem, searched and tried dozens of threads, the "su -" vs "su" made all the difference!
Reply all
Reply to author
Forward
0 new messages