Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing wireguard on pi #6

Open
goliatone opened this issue Jun 11, 2020 · 5 comments
Open

Installing wireguard on pi #6

goliatone opened this issue Jun 11, 2020 · 5 comments

Comments

@goliatone
Copy link

wget -O - https://ftp-master.debian.org/keys/archive-key-$(lsb_release -sr).asc | sudo apt-key add -

Error:

pi@raspberrypi:~ $ wget -O - https://ftp-master.debian.org/keys/archive-key-$(lsb_release -sr).asc | sudo apt-key add -
--2020-06-11 02:33:50--  https://ftp-master.debian.org/keys/archive-key-9.11.asc
Resolving ftp-master.debian.org (ftp-master.debian.org)... 138.16.160.17
Connecting to ftp-master.debian.org (ftp-master.debian.org)|138.16.160.17|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-06-11 02:33:50 ERROR 404: Not Found.

gpg: no valid OpenPGP data found.

Following installations from raspberrypiwireguard did work tho.

$ sudo apt-get update
$ sudo apt-get upgrade 
$ sudo apt-get install raspberrypi-kernel-headers
$ echo "deb http://deb.debian.org/debian/ unstable main" | sudo tee --append /etc/apt/sources.list.d/unstable.list
$ sudo apt-get install dirmngr 
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8B48AD6246925553
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7638D0442B90D010
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 04EE7237B7D453EC
$ printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' | sudo tee --append /etc/apt/preferences.d/limit-unstable
$ sudo apt-get update
$ sudo apt-get install wireguard 
$ sudo reboot
@technomada
Copy link
Owner

Added a link to raspberrypiwireguard ... checking on a pi 3 ....

$ wget -O - https://ftp-master.debian.org/keys/archive-key-$(lsb_release -sr).asc | sudo apt-key add -
--2020-06-11 02:53:22--  https://ftp-master.debian.org/keys/archive-key-10.asc
Resolving ftp-master.debian.org (ftp-master.debian.org)... 138.16.160.17
Connecting to ftp-master.debian.org (ftp-master.debian.org)|138.16.160.17|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11093 (11K) [text/plain]
Saving to: ‘STDOUT’

-                           100%[===========================================>]  10.83K  --.-KB/s    in 0.06s   

2020-06-11 02:53:23 (188 KB/s) - written to stdout [11093/11093]

OK
pi@raspberrypi:~ $ lsb_release -sr
10
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
$ pi@raspberrypi:~ $ cat /proc/device-tree/model
Raspberry Pi 3 Model B Plus Rev 1.3

What do you show for $ lsb_release -sr

Will do a test run with a new pi build and update.

@goliatone
Copy link
Author

pi@raspberrypi:~ $ lsb_release -sr
9.11
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
$ cat /proc/device-tree/model
Raspberry Pi 3 Model B Rev 1.2

@technomada
Copy link
Owner

listing of https://ftp-master.debian.org/keys/

  | archive-key-4.0-revoke.asc | 2019-07-01 15:00 | 693
  | archive-key-4.0.asc | 2010-06-10 15:39 | 1.0K
  | archive-key-5.0-revoke.asc | 2019-07-01 15:00 | 1.7K
  | archive-key-5.0.asc | 2010-06-10 15:39 | 2.0K
  | archive-key-6.0-revoke.asc | 2019-07-01 15:00 | 1.7K
  | archive-key-6.0.asc | 2010-08-28 11:32 | 5.5K
  | archive-key-7.0-revoke.asc | 2019-07-01 15:00 | 4.7K
  | archive-key-7.0.asc | 2018-06-16 10:15 | 4.8K
  | archive-key-8-security.asc | 2014-11-25 22:58 | 6.9K
  | archive-key-8.asc | 2014-11-25 22:58 | 6.8K
  | archive-key-9-security.asc | 2017-05-25 07:35 | 9.9K
  | archive-key-9.asc | 2017-05-25 07:35 | 9.9K
  | archive-key-10-security.asc | 2019-04-22 10:13 | 11K
  | archive-key-10.asc | 2019-04-22 10:13 | 11K
  | release-6.asc | 2019-07-01 15:00 | 1.1K
  | release-7.asc | 2019-07-01 15:00 | 1.1K
  | release-8.asc | 2019-07-01 15:00 | 1.1K
  | release-9.asc | 2019-07-01 15:00 | 1.1K
  | release-10.asc | 2019-07-01 15:00 | 1.2K
  | ziyi_key.asc | 2010-06-10 15:39 | 1.7K
  | ziyi_key2-revoke.asc | 2019-07-01 15:00 | 1.3K
  | ziyi_key2.asc | 2010-06-10 15:39 | 1.9K
  | ziyi_key_2002-revoke.asc | 2019-07-01 15:00 | 1.3K
  | ziyi_key_2002.asc | 2010-06-10 15:39 | 2.7K
  | ziyi_key_2003-revoke.asc | 2019-07-01 15:00 | 684
  | ziyi_key_2003.asc | 2010-06-10 15:39 | 1.1K
  | ziyi_key_2003v2-revoke.asc | 2019-07-01 15:00 | 685
  | ziyi_key_2003v2.asc | 2010-06-10 15:39 | 1.0K
  | ziyi_key_2004-revoke.asc | 2019-07-01 15:00 | 581
  | ziyi_key_2004.asc | 2010-06-10 15:39 | 751
  | ziyi_key_2005-revoke.asc | 2019-07-01 15:00 | 682
  | ziyi_key_2005.asc | 2010-06-10 15:39 | 1.2K
  | ziyi_key_2006-revoke.asc | 2019-07-01 15:00 | 691
  | ziyi_key_2006.asc | 2010-06-10 15:39 | 2.0K
  | ziyi_key_revoke.asc | 2010-06-10 15:39 | 306

lsb_release -sr shows 9.11

pi@raspberrypi:~ $ lsb_release -sr
9.11
wget -O - https://ftp-master.debian.org/keys/archive-key-$(lsb_release -sr).asc | sudo apt-key add -

looking for non exsiting file?
https://ftp-master.debian.org/keys/archive-key-9.11.asc

next:
add suggestion if 404 issue see the pi wireguard link.

consider switching to pi wireguard instructions in readme.

@technomada
Copy link
Owner

Currious does...

 wget -O - https://ftp-master.debian.org/keys/archive-key-9.asc | sudo apt-key add -

...work correctly on stretch or is it better to recomend buster or newer?

@goliatone
Copy link
Author

@technomada I bricked that device and had to flash a new SD with the latest release, didn't had a chance to execute that command, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants