Giter Club home page Giter Club logo

Comments (8)

NoahLerner avatar NoahLerner commented on May 17, 2024 1

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'

from wirehole.

IAmStoxe avatar IAmStoxe commented on May 17, 2024

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!

from wirehole.

NoahLerner avatar NoahLerner commented on May 17, 2024

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

`

from wirehole.

IAmStoxe avatar IAmStoxe commented on May 17, 2024

Does running this on the host work?

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

Then try again

from wirehole.

ctroxtell avatar ctroxtell commented on May 17, 2024

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'

from wirehole.

DrNion avatar DrNion commented on May 17, 2024

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) :)

from wirehole.

IAmStoxe avatar IAmStoxe commented on May 17, 2024

Closing due to inactivity.

from wirehole.

asyba avatar asyba commented on May 17, 2024

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?

from wirehole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.