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

Installer for Raspbian? #15

Closed
NoahLerner opened this issue Oct 15, 2020 · 8 comments
Closed

Installer for Raspbian? #15

NoahLerner opened this issue Oct 15, 2020 · 8 comments

Comments

@NoahLerner
Copy link

Hey Stoxe, great work on this automated process!

I'm wondering if you plan on supporting Raspbian with your script? Thanks

@IAmStoxe
Copy link
Owner

Hey @NoahLerner thanks for the issue!

Which part doesn't work on raspbian? If you can get docker on there I believe it works. Otherwise if you have an error or similar I'm happy to help troubleshooting.

Hope to hear back soon!

@NoahLerner
Copy link
Author

I am coming from a clean install of Raspbian on RPi4b. I installed docker and docker-compose separately. Hopefully I didn't miss any other stages of the install process. Here is my output when trying to spin up the docker compose file:

`pi@raspberrypi:~/wirehole $ sudo docker-compose up
Starting unbound ... done
Starting pihole ... done
Starting wireguard ... done
Attaching to unbound, pihole, wireguard
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
pihole | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
pihole | [s6-init] ensuring user provided files have correct perms...exited 0.
pihole | [fix-attrs.d] applying ownership & permissions fixes...
pihole | [fix-attrs.d] 01-resolver-resolv: applying...
pihole | [fix-attrs.d] 01-resolver-resolv: exited 0.
pihole | [fix-attrs.d] done.
pihole | [cont-init.d] executing container initialization scripts...
pihole | [cont-init.d] 20-start.sh: executing...
pihole | ::: Starting docker specific checks & setup for docker pihole/pihole
wireguard | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
wireguard | [s6-init] ensuring user provided files have correct perms...exited 0.
wireguard | [fix-attrs.d] applying ownership & permissions fixes...
wireguard | [fix-attrs.d] done.
wireguard | [cont-init.d] executing container initialization scripts...
wireguard | [cont-init.d] 01-envfile: executing...
wireguard | [cont-init.d] 01-envfile: exited 0.
wireguard | [cont-init.d] 10-adduser: executing...
wireguard | usermod: no changes
wireguard |
wireguard | -------------------------------------
wireguard | _ ()
wireguard | | | ___ _ __
wireguard | | | / | | | / \
wireguard | | | _
\ | | | () |
wireguard | || |
/ || __/
wireguard |
wireguard |
wireguard | Brought to you by linuxserver.io
wireguard | -------------------------------------
wireguard |
wireguard | To support the app dev(s) visit:
wireguard | WireGuard: https://www.wireguard.com/donations/
wireguard |
wireguard | To support LSIO projects visit:
wireguard | https://www.linuxserver.io/donate/
wireguard | -------------------------------------
wireguard | GID/UID
wireguard | -------------------------------------
wireguard |
wireguard | User uid: 1000
wireguard | User gid: 1000
wireguard | -------------------------------------
wireguard |
wireguard | [cont-init.d] 10-adduser: exited 0.
wireguard | [cont-init.d] 30-config: executing...
wireguard | Uname info: Linux 664762f736b4 4.19.57-v7l+ #1244 SMP Thu Jul 4 18:48:07 BST 2019 armv7l armv7l armv7l GNU/Linux
wireguard | **** The wireguard module is not active, will attempt kernel header install and module compilation. ****
wireguard | RTNETLINK answers: Operation not supported
wireguard | **** Attempting kernel header install ****
unbound exited with code 1
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
unbound | standard_init_linux.go:211: exec user process caused "exec format error"
wireguard | Err:1 http://archive.raspberrypi.org/debian buster InRelease
wireguard | Temporary failure resolving 'archive.raspberrypi.org'
wireguard | Err:2 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
wireguard | Temporary failure resolving 'ports.ubuntu.com'
unbound exited with code 1
unbound exited with code 0
unbound exited with code 1
unbound exited with code 1
wireguard | Err:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
wireguard | Temporary failure resolving 'ports.ubuntu.com'
unbound exited with code 1
wireguard | Err:4 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
wireguard | Temporary failure resolving 'ports.ubuntu.com'
unbound exited with code 1
[✓] Update local cache of available packages
pihole | [i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u8
pihole |
pihole | [i] Installing configs from /etc/.pihole...
pihole | [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
[✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
pihole | chown: cannot access '': No such file or directory
pihole | chmod: cannot access '': No such file or directory
pihole | chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory
pihole | ::: Pre existing WEBPASSWORD found
pihole | Docker DNS variables not used
pihole | Existing DNS servers used (10.2.0.200 & 10.2.0.200)
pihole | DNSMasq binding to default interface: eth0
pihole | Added ENV to php:
pihole | "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
pihole | "ServerIP" => "10.1.0.100",
pihole | "VIRTUAL_HOST" => "10.1.0.100",
pihole | Using IPv4 and IPv6
pihole | ::: setup_blocklists now setting default blocklists up:
pihole | ::: TIP: Use a docker volume for /etc/pihole/adlists.list if you want to customize for first boot
pihole | ::: Blocklists (/etc/pihole/adlists.list) now set to:
pihole | https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
pihole | https://mirror1.malwaredomains.com/files/justdomains
pihole | ::: Testing pihole-FTL DNS: FTL started!
pihole | ::: Testing lighttpd config: Syntax OK
pihole | ::: All config checks passed, cleared for startup ...
pihole | ::: Docker start setup complete
wireguard | Err:5 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
wireguard | Temporary failure resolving 'ports.ubuntu.com'
wireguard | Reading package lists...
wireguard | W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic/InRelease Temporary failure resolving 'ports.ubuntu.com'
wireguard | W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/InRelease Temporary failure resolving 'ports.ubuntu.com'
wireguard | W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-backports/InRelease Temporary failure resolving 'ports.ubuntu.com'
wireguard | W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-security/InRelease Temporary failure resolving 'ports.ubuntu.com'
wireguard | W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease Temporary failure resolving 'archive.raspberrypi.org'
wireguard | W: Some index files failed to download. They have been ignored, or old ones used instead.
wireguard | **** Raspbian kernel naming convention detected, attempting to install raspbian kernel headers ****
wireguard | Warning: apt-key output should not be parsed (stdout is not a terminal)
unbound exited with code 1
pihole | [✗] DNS resolution is currently unavailable
wireguard | gpg: no valid OpenPGP data found.
wireguard | Err:1 http://archive.raspberrypi.org/debian buster InRelease
wireguard | Temporary failure resolving 'archive.raspberrypi.org'
wireguard | Err:2 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
wireguard | Temporary failure resolving 'ports.ubuntu.com'
wireguard | Err:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
wireguard | Temporary failure resolving 'ports.ubuntu.com'
unbound exited with code 1
wireguard | Err:4 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
wireguard | Temporary failure resolving 'ports.ubuntu.com'
wireguard | Err:5 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
wireguard | Temporary failure resolving 'ports.ubuntu.com'
wireguard | Reading package lists...
wireguard | W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic/InRelease Temporary failure resolving 'ports.ubuntu.com'
wireguard | W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/InRelease Temporary failure resolving 'ports.ubuntu.com'
wireguard | W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-backports/InRelease Temporary failure resolving 'ports.ubuntu.com'
wireguard | W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-security/InRelease Temporary failure resolving 'ports.ubuntu.com'
wireguard | W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease Temporary failure resolving 'archive.raspberrypi.org'
wireguard | W: Some index files failed to download. They have been ignored, or old ones used instead.
wireguard | Reading package lists...
wireguard | Building dependency tree...
wireguard | Reading state information...
wireguard | E: Unable to locate package raspberrypi-kernel-headers
wireguard | **** Kernel headers don't seem to be available, can't compile the module. Sleeping now. . . ****
unbound exited with code 1

`

@IAmStoxe
Copy link
Owner

IAmStoxe commented Oct 16, 2020

Does running this on the host work?

$ sudo apt-get install wireguard-dkms wireguard-tools linux-headers-$(uname -r)

Then try again

@NoahLerner
Copy link
Author

Running that directly on the RPi results in this output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package wireguard-dkms
E: Unable to locate package wireguard-tools
E: Unable to locate package linux-headers-4.19.57-v7l
E: Couldn't find any package by glob 'linux-headers-4.19.57-v7l'
E: Couldn't find any package by regex 'linux-headers-4.19.57-v7l'

@ctroxtell
Copy link

ctroxtell commented Oct 17, 2020

I'm getting the same error pretty much on my RP3+.

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-5.4.51-v7
E: Couldn't find any package by glob 'linux-headers-5.4.51-v7'
E: Couldn't find any package by regex 'linux-headers-5.4.51-v7'

@DrNion
Copy link

DrNion commented Nov 11, 2020

Hey guys! 2 things:

  1. In order to install the linux-headers on a raspberry pi linux-headers-$(uname -r) won't work. Try this instead:
sudo apt-get install raspberrypi-kernel-headers
  1. the mvance/unbound:latest image won't work anymore on a raspberry pi. Try this image instead:
mvance/unbound-rpi:latest

Didn't try it yet (since I have the same problems) but I hope it will help you!

EDIT:
OK I just need to try if it works, cannot wait till tomorrow!

I just did the steps above but Wireguard still couldn't find the linux-header...
A ls -o /lib/modules/5.4.72-v8+ just showed me that instead of the linux-header there is a link called build connected to the actual linux-header folder which is in /usr/src which isn't mounted as a volume.

Long story short:
add ...

 - /usr/src:/usr/src

...to your wireguard volumes:.
(source)

That part worked for me!

EDIT2:
If you have Raspberry-Pi-OS 64bit (arm64) then you gonna have a problem.
It is possible to make it work but with my state of knowledge I don't feel comfortable messing around with the kernel.
That's why I'll wait for an update (either from Wireguard or from the Raspberry Devs) :)

@IAmStoxe
Copy link
Owner

IAmStoxe commented Jun 1, 2021

Closing due to inactivity.

@IAmStoxe IAmStoxe closed this as completed Jun 1, 2021
@asyba
Copy link

asyba commented Jul 22, 2021

Hey guys! 2 things:

  1. In order to install the linux-headers on a raspberry pi linux-headers-$(uname -r) won't work. Try this instead:
sudo apt-get install raspberrypi-kernel-headers
  1. the mvance/unbound:latest image won't work anymore on a raspberry pi. Try this image instead:
mvance/unbound-rpi:latest

Didn't try it yet (since I have the same problems) but I hope it will help you!

EDIT:
OK I just need to try if it works, cannot wait till tomorrow!

I just did the steps above but Wireguard still couldn't find the linux-header...
A ls -o /lib/modules/5.4.72-v8+ just showed me that instead of the linux-header there is a link called build connected to the actual linux-header folder which is in /usr/src which isn't mounted as a volume.

Long story short:
add ...

 - /usr/src:/usr/src

...to your wireguard volumes:.
(source)

That part worked for me!

EDIT2:
If you have Raspberry-Pi-OS 64bit (arm64) then you gonna have a problem.
It is possible to make it work but with my state of knowledge I don't feel comfortable messing around with the kernel.
That's why I'll wait for an update (either from Wireguard or from the Raspberry Devs) :)

did you manage to install it?

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

5 participants