Hilfe bei der Installation von Unbound !!

Hallo zusammen, vielleicht kann mit jemand veon euch helfen.
Ich habe versucht Unbound zu installieren, allerdings scheint die zu scheitern.....

pi@raspberrypi:~ $ sudo aptitude install unbound/testing
e.
See "systemctl status unbound.service" and "journalctl -xe" for details.
Job for unbound.service failed because the control process exited with error code.
See "systemctl status unbound.service" and "journalctl -xe" for details.
invoke-rc.d: initscript unbound, action "restart" failed.
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2020-07-12 07:22:29 BST; 34ms ago
Docs: man:unbound(8)
Process: 9402 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=1/FAILURE)
Process: 9405 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=1/FAILURE)
Process: 9408 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, status=1/FAILURE)
Main PID: 9408 (code=exited, status=1/FAILURE)
Processing triggers for systemd (241-7~deb10u4+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...

Das wird mir angezeigt wen ich den Befehl: sudo aptitude install unbound/testing ausfügre angezeigt (oben)

Was gibt denn

systemctl status unbound.service

journalctl -xe

aus?

systemctl status unbound.service
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset:
Active: failed (Result: exit-code) since Sun 2020-07-12 11:38:01 BST; 13s ago
Docs: man:unbound(8)
Process: 12581 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code
Process: 12584 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_
Process: 12587 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, statu
Main PID: 12587 (code=exited, status=1/FAILURE)

Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Service RestartSec=100m
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Scheduled restart job,
Jul 12 11:38:01 raspberrypi systemd[1]: Stopped Unbound DNS server.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Start request repeated
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Failed with result 'exi
Jul 12 11:38:01 raspberrypi systemd[1]: Failed to start Unbound DNS server.
lines 1-15/15 (END)
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-07-12 11:38:01 BST; 13s ago
Docs: man:unbound(8)
Process: 12581 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, stat
Process: 12584 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=
Process: 12587 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, status=1/FAILURE)
Main PID: 12587 (code=exited, status=1/FAILURE)

Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Service RestartSec=100ms expired, sc
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Scheduled restart job, restart count
Jul 12 11:38:01 raspberrypi systemd[1]: Stopped Unbound DNS server.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Start request repeated too quickly.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Failed with result 'exit-code'.
Jul 12 11:38:01 raspberrypi systemd[1]: Failed to start Unbound DNS server.
~
~
~
~
~
~
~
~
~
lines 1-15/15 (END)
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-07-12 11:38:01 BST; 13s ago
Docs: man:unbound(8)
Process: 12581 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=1/FAILU
Process: 12584 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, st
Process: 12587 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, status=1/FAILURE)
Main PID: 12587 (code=exited, status=1/FAILURE)

Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Service RestartSec=100ms expired, scheduling r
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 8
Jul 12 11:38:01 raspberrypi systemd[1]: Stopped Unbound DNS server.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Start request repeated too quickly.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Failed with result 'exit-code'.
Jul 12 11:38:01 raspberrypi systemd[1]: Failed to start Unbound DNS server.
~
~
~
~
~
~
~
~
~
lines 1-15/15 (END)
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-07-12 11:38:01 BST; 13s ago
Docs: man:unbound(8)
Process: 12581 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=1/FAILUR
Process: 12584 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, sta
Process: 12587 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, status=1/FAILURE)
Main PID: 12587 (code=exited, status=1/FAILURE)

Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Service RestartSec=100ms expired, scheduling re
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 8.
Jul 12 11:38:01 raspberrypi systemd[1]: Stopped Unbound DNS server.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Start request repeated too quickly.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Failed with result 'exit-code'.
Jul 12 11:38:01 raspberrypi systemd[1]: Failed to start Unbound DNS server.
~
~
~
~
~
~
~
~
~
lines 1-15/15 (END)
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-07-12 11:38:01 BST; 13s ago
Docs: man:unbound(8)
Process: 12581 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=1/FAILURE)
Process: 12584 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=1/FA
Process: 12587 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, status=1/FAILURE)
Main PID: 12587 (code=exited, status=1/FAILURE)

Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Service RestartSec=100ms expired, scheduling restart.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 8.
Jul 12 11:38:01 raspberrypi systemd[1]: Stopped Unbound DNS server.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Start request repeated too quickly.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Failed with result 'exit-code'.
Jul 12 11:38:01 raspberrypi systemd[1]: Failed to start Unbound DNS server.
~
~
~
~
~
~
~
~
~
lines 1-15/15 (END)
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-07-12 11:38:01 BST; 13s ago
Docs: man:unbound(8)
Process: 12581 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=1/FAILURE)
Process: 12584 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=1/FAILURE)
Process: 12587 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, status=1/FAILURE)
Main PID: 12587 (code=exited, status=1/FAILURE)

Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Service RestartSec=100ms expired, scheduling restart.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 8.
Jul 12 11:38:01 raspberrypi systemd[1]: Stopped Unbound DNS server.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Start request repeated too quickly.
Jul 12 11:38:01 raspberrypi systemd[1]: unbound.service: Failed with result 'exit-code'.
Jul 12 11:38:01 raspberrypi systemd[1]: Failed to start Unbound DNS server.
~
~
~
~
~
~
~
~
~

ystemctl status unbound.service
● unbound.service - Unbound DNS server
Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset:
Active: failed (Result: exit-code) since Sun 2020-07-12 11:44:55 BST; 27s ago
Docs: man:unbound(8)
Process: 12870 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code
Process: 12873 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_
Process: 12876 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, statu
Main PID: 12876 (code=exited, status=1/FAILURE)

Jul 12 11:44:55 raspberrypi systemd[1]: Failed to start Unbound DNS server.
Jul 12 11:44:55 raspberrypi systemd[1]: unbound.service: Service RestartSec=100m
Jul 12 11:44:55 raspberrypi systemd[1]: unbound.service: Scheduled restart job,
Jul 12 11:44:55 raspberrypi systemd[1]: Stopped Unbound DNS server.
Jul 12 11:44:55 raspberrypi systemd[1]: unbound.service: Start request repeated
Jul 12 11:44:55 raspberrypi systemd[1]: unbound.service: Failed with result 'exi
Jul 12 11:44:55 raspberrypi systemd[1]: Failed to start Unbound DNS server.
lines 1-16/16 (END)

Poste mal bitte deine

/etc/unbound/unbound.conf.d/pi-hole.conf

und den Output von

sudo unbound-checkconf

Welches OS verwendest du?

/etc/unbound/unbound.conf.d/pi-hole.conf
-bash: /etc/unbound/unbound.conf.d/pi-hole.conf: No such file or directory

Es scheint, als liegt keine Konfigurationsdatei vor, das verhindert evt. den Start von unbound.

Bitte mal den Output von

ls -lha /etc/unbound/unbound.conf.d/

und

sudo unbound-checkconf

posten

P.S. Mit dem </> Symbol oben in der Leiste kannst du den Terminal output schöner formatieren.

pi@raspberrypi:~ $ sudo mv root.hints /var/lib/unbound/
pi@raspberrypi:~ $ ls -lha /etc/unbound/unbound.conf.d/
total 8.0K
drwxr-xr-x 2 root root 4.0K Jul 12 12:15 .
drwxr-xr-x 3 root root 4.0K Jul 12 12:15 ..

pi@raspberrypi:~ $ sudo unbound-checkconf
[1594552677] unbound-checkconf[16675:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory

Du hast keine Konfigurationsdatei angelegt, bitte nochmal hier schauen und eine anlegen:
https://docs.pi-hole.net/guides/unbound/

Welches OS verwendest du?

[quote="jm1982, post:8, topic:35437"]
sudo unbound-checkconf
[/quote

Habe sie jetzt angelegt, es kommt aber wieder das gleiche.
[1594552923] unbound-checkconf[16728:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory

Gibt es den die möglichkeit Unbound zu deinstallieren und nochmal von vorne anzufangen ?

sudo apt purge unbound

Es ist komisch, dass die Datei nicht existiert. Versuche es nochmal neu zu installieren, wenn die Datei wieder nicht existiert, dann lege sie einfach mit folgendem Inhalt an

# Unbound configuration file for Debian.
#
# See the unbound.conf(5) man page.
#
# See /usr/share/doc/unbound/examples/unbound.conf for a commented
# reference config file.
#
# The following line includes additional configuration files from the
# /etc/unbound/unbound.conf.d directory.
include: "/etc/unbound/unbound.conf.d/*.con

Und wie mache ich das? Eine Datei anlegen? Habe mich jetzt genau an die Anletung gehalten und es kommt wenn ich
/etc/unbound/unbound.conf.d/pi-hole.conf
Eintippe wieder:
/etc/unbound/unbound.conf.d/pi-hole.conf:
-bash: /etc/unbound/unbound.conf.d/pi-hole.conf:: No such file or directory

sudo nano /etc/unbound/unbound.conf.d/pi-hole.conf

Das ist ein Text editor. Dort die Beipieldatei copy& pasten.

Speichern mit Strg+o, Schließen mit Strg+x

Ok habe ich gemacht unda was kommt dann ?

sudo unbound-checkconf

sudo unbound-checkconf
/etc/unbound/unbound.conf.d/pi-hole.conf:10: error: newline before " in include name
read /etc/unbound/unbound.conf failed: 1 errors in configuration file

Es gibt einen Fehler in Zeile 10 der Datei.

Du kannst die Beispielkonfiguration über die rechte obere Ecke mit dem Symbol kopieren, dass vermeidet Symbolfehler.

Also nochmal löschen und neu anlegen

sudo rm /etc/unbound/unbound.conf.d/pi-hole.conf

Habe jetz mal
sudo apt purge unbound ausgeführt und von vorne begonnen.

sudo apt install unbound

Und mir wird schon beo der Installation dies angezeigt:
Process: 20785 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=1/FAILURE)
Process: 20788 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=1/FAILURE)
Process: 20791 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, status=1/FAILURE)
Main PID: 20791 (code=exited, status=1/FAILURE)
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-7~deb10u4+rpi1) ...