diladele / dnssafety

DNS Safety is simple and fast DNS filtering server for your local network
https://www.diladele.com/dnssafety/
29 stars 8 forks source link

Doesnt installed on Ubuntu 20.04 #437

Closed LexterS999 closed 2 years ago

LexterS999 commented 4 years ago

That's what I got on the last step when trying to install dnsfilter gui and also Apache2 doesnt work too

2020-10-03 23:21:40,730 Resetting network configuration to 'ubuntu18' ... Traceback (most recent call last): File "/opt/dnssafety-ui/var/console/utils.py", line 99, in main() File "/opt/dnssafety-ui/var/console/utils.py", line 93, in main process_args(args) File "/opt/dnssafety-ui/var/console/utils.py", line 74, in process_args process_network(args.network) File "/opt/dnssafety-ui/var/console/utils.py", line 57, in process_network NetworkDeviceSyncer().reread_from_system(force_sync) File "/opt/dnssafety-ui/var/console/node/blogic.py", line 255, in reread_from_system actual = NetDeviceEnumerator().enumerate() File "/opt/dnssafety-ui/var/console/_domain/node/network.py", line 26, in enumerate return self.enumerate_linux() File "/opt/dnssafety-ui/var/console/_domain/node/network.py", line 78, in enumerate_linux nics[name] = self.enumerate_linux_device(name) File "/opt/dnssafety-ui/var/console/_domain/node/network.py", line 116, in enumerate_linux_device NetPlanIpParser().fill(device) File "/opt/dnssafety-ui/var/console/_domain/node/netaddr.py", line 28, in fill raise Exception("Cannot file default netplan file in '%s'" % filename) Exception: Cannot file default netplan file in '/etc/netplan/50-cloud-init.yaml'

I try to use Debian 9/10 and Ubuntu 18 but still doesnt install properly on the stage 2 (dngfilter gui and apache2 service is not working). Try even on the fresh system but the same error's.

ra-at-diladele-com commented 4 years ago

The code assumes it is run on Ubuntu 18 - for Debian 10 it shall be like:

Resetting network configuration to 'debian10'

I will take a look anyway when we start making 0.17 to support Ubuntu 20.

LexterS999 commented 4 years ago

It doesnt work on debia9/10 too. I try many times and even on fresh system. Used guide for Debian system and same error about apache2 and dnssafety ui

danieljloughlin commented 3 years ago

It is possible to install DNS Saftey on Ubuntu 20.04 LTS.

The installer is expecting 50-cloud-init.yaml to exist in /etc/netplan. Simply rename the existing .yaml file in that directory to 50-cloud-init.yaml and run the installer again.

ra-at-diladele-com commented 2 years ago

Version 1.0 will only run on Debian 11.