profile
viewpoint

Ask questionsSupport: Ubiquiti Unifi Dream Machine (UDM)

Following on from #48. Device: https://store.ui.com/collections/unifi-network-routing-switching/products/unifi-dream-machine

It runs a variant of Linux called UbiOS (Ubiquiti OS), which seems to be a variant of Alpine Linux.

# sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'
ERROR: Unsupported OS: Linux
INFO: OS:
INFO: GOARCH: arm64
INFO: GOOS: linux
ERROR: Cannot detect running environment.
# uname -a
Linux Dream-Machine 4.1.37-v1.5.6.2150-615c4d9 #1 SMP Fri Mar 27 20:35:59 UTC 2020 aarch64 GNU/Linux

# cat /etc/os-release
NAME=UbiOS
VERSION=UDM.alpinev2.v1.5.6.615c4d9.200327.1930
ID=ubios
VERSION_ID=v1.5.6.2150-615c4d9
PRETTY_NAME="UbiOS 1.5.6.2150"
BUILD_ID=200327.1930
VARIANT=UDM.alpinev2

# busybox | head -1
BusyBox v1.27.2 (2020-03-27 19:52:18 UTC) multi-call binary.

# curl --version
curl 7.59.0 (aarch64-buildroot-linux-gnu) libcurl/7.59.0 OpenSSL/1.0.2o zlib/1.2.11 c-ares/1.14.0
Release-Date: 2018-03-14
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM SSL libz TLS-SRP UnixSockets HTTPS-proxy

# echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin

# ls -l /
total 0
-rw-r--r--    1 root     root             0 Apr 20 12:52 1
drwxr-xr-x    2 root     root          1076 Mar 27 14:03 bin
lrwxrwxrwx    1 root     root            22 Mar 27 13:52 config -> /mnt/data/udapi-config
drwxr-xr-x    9 root     root          3240 Apr 20 12:53 dev
drwxr-xr-x    1 root     root           640 Apr 20 14:18 etc
drwxr-xr-x    3 root     root            27 Mar 27 13:58 etc_ro
drwxr-xr-x    7 root     root          1210 Mar 27 12:29 lib
lrwxrwxrwx    1 root     root             3 Mar 27 12:34 lib64 -> lib
lrwxrwxrwx    1 root     root            11 Mar 27 12:52 linuxrc -> bin/busybox
drwxr-xr-x    2 root     root             3 Dec 16 06:59 media
drwxr-xr-x    5 root     root            61 Mar 27 13:49 mnt
drwxr-xr-x    2 root     root             3 Dec 16 06:59 opt
drwxr-xr-x    5 root     root            52 Mar 27 13:50 overlay
dr-xr-xr-x  159 root     root             0 Dec 31  1969 proc
drwx------    1 root     root            60 Apr 20 14:33 root
drwxr-xr-x   13 root     root          1760 Apr 20 14:36 run
drwxr-xr-x    2 root     root          2057 Mar 27 14:03 sbin
dr-xr-xr-x   12 root     root             0 Dec 31  1969 sys
drwxrwxrwt   10 root     root           560 Apr 20 14:38 tmp
drwxr-xr-x    1 root     root            80 Mar 27 14:04 usr
drwxr-xr-x    4 root     root           108 Mar 27 14:04 var



# cat /run/dnsmasq.script
#!/bin/sh

#
# Generated automatically by ubios-udapi-server
#

/usr/bin/dnsmasq-dhcp-script "$@"


# ls /run/dnsmasq.conf.d/
dhcp.dhcpServers-net_LAN_br0_192-168-1-0-24.conf  dns.conf                                           shared.conf


# cat /run/dnsmasq.conf.d/dns.conf
#
# Generated automatically by ubios-udapi-server
#

# Configuration of DNS Forwarder
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
resolv-file=/etc/resolv.dnsmasq
interface=br0
# Add resolution support to dnsfilter.
interface=dnsfilter
host-record=unifi.localdomain,unifi,192.168.1.1
host-record=setup.ui.com,192.168.1.1


# cat /run/dnsmasq.conf.d/shared.conf
#
# Generated automatically by ubios-udapi-server
#

# Basic Setup
keep-in-foreground
bind-dynamic
pid-file=/run/dnsmasq.pid
dhcp-authoritative
dhcp-leasefile=/config/dnsmasq.lease
dhcp-script=/run/dnsmasq.script
dhcp-lease-max=1000000

nextdns/nextdns

Answer questions mbnn

So i did rm -f /data/nextdns and then did the setup again but i get:

Choice (default=i): i
INFO: Installing NextDNS...
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [53.0 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]
Get:4 http://deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:5 http://deb.debian.org/debian stretch Release
Ign:7 https://apt-alpha.artifacts.ui.com stretch InRelease
Ign:8 https://apt-alpha.artifacts.ui.com stretch Release
Ign:9 https://apt-alpha.artifacts.ui.com stretch/alpha arm64 Packages
Ign:10 https://apt-alpha.artifacts.ui.com stretch/alpha all Packages
Ign:9 https://apt-alpha.artifacts.ui.com stretch/alpha arm64 Packages
Ign:10 https://apt-alpha.artifacts.ui.com stretch/alpha all Packages
Get:11 http://security.debian.org/debian-security stretch/updates/main arm64 Packages [544 kB]
Ign:9 https://apt-alpha.artifacts.ui.com stretch/alpha arm64 Packages
Hit:12 https://deb.nodesource.com/node_8.x stretch InRelease
Ign:10 https://apt-alpha.artifacts.ui.com stretch/alpha all Packages
Ign:9 https://apt-alpha.artifacts.ui.com stretch/alpha arm64 Packages
Ign:10 https://apt-alpha.artifacts.ui.com stretch/alpha all Packages
Ign:9 https://apt-alpha.artifacts.ui.com stretch/alpha arm64 Packages
Ign:10 https://apt-alpha.artifacts.ui.com stretch/alpha all Packages
Err:9 https://apt-alpha.artifacts.ui.com stretch/alpha arm64 Packages
  401  Unauthorized
Ign:10 https://apt-alpha.artifacts.ui.com stretch/alpha all Packages
Ign:13 https://apt.artifacts.ui.com stretch InRelease
Ign:15 https://apt-beta.artifacts.ui.com stretch InRelease
Ign:6 https://dl.bintray.com/nextdns/deb stable InRelease
Get:17 https://apt.artifacts.ui.com stretch Release [6974 B]
Ign:18 https://apt-beta.artifacts.ui.com stretch Release
Hit:17 https://apt.artifacts.ui.com stretch Release
Ign:20 https://apt-beta.artifacts.ui.com stretch/beta all Packages
Get:16 https://dl.bintray.com/nextdns/deb stable Release [9511 B]
Ign:21 https://apt-beta.artifacts.ui.com stretch/beta arm64 Packages
Get:22 https://dl.bintray.com/nextdns/deb stable Release.gpg [821 B]
Ign:20 https://apt-beta.artifacts.ui.com stretch/beta all Packages
Ign:21 https://apt-beta.artifacts.ui.com stretch/beta arm64 Packages
Ign:20 https://apt-beta.artifacts.ui.com stretch/beta all Packages
Get:23 https://dl.bintray.com/nextdns/deb stable/main arm64 Packages [4929 B]
Ign:21 https://apt-beta.artifacts.ui.com stretch/beta arm64 Packages
Ign:20 https://apt-beta.artifacts.ui.com stretch/beta all Packages
Ign:21 https://apt-beta.artifacts.ui.com stretch/beta arm64 Packages
Ign:20 https://apt-beta.artifacts.ui.com stretch/beta all Packages
Ign:21 https://apt-beta.artifacts.ui.com stretch/beta arm64 Packages
Ign:20 https://apt-beta.artifacts.ui.com stretch/beta all Packages
Err:21 https://apt-beta.artifacts.ui.com stretch/beta arm64 Packages
  401  Unauthorized
Fetched 798 kB in 3s (238 kB/s)
Reading package lists...
W: The repository 'https://apt-alpha.artifacts.ui.com stretch Release' does not have a Release file.
W: The repository 'https://apt-beta.artifacts.ui.com stretch Release' does not have a Release file.
E: Failed to fetch https://apt-alpha.artifacts.ui.com/dists/stretch/alpha/binary-arm64/Packages  401  Unauthorized
E: Failed to fetch https://apt-beta.artifacts.ui.com/dists/stretch/beta/binary-arm64/Packages  401  Unauthorized
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error: non zero exit code: 100: OCI runtime error
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  nextdns
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 2609 kB of archives.
After this operation, 6816 kB of additional disk space will be used.
Get:1 https://dl.bintray.com/nextdns/deb stable/main arm64 nextdns arm64 1.8.0 [2609 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2609 kB in 2s (1080 kB/s)
[is_unpacked_by_apt] dpkgcmdline:  /usr/bin/dpkg --status-fd 19 --no-triggers --unpack --auto-deconfigure /var/cache/apt/archives/nextdns_1.8.0_arm64.deb
[parse_pkg_files] cmdargs:  /usr/bin/dpkg
Selecting previously unselected package nextdns.
(Reading database ... 62375 files and directories currently installed.)
Preparing to unpack .../nextdns_1.8.0_arm64.deb ...
Unpacking nextdns (1.8.0) ...
#-> ubnt-dpkg-cache unpack
[is_unpacked_by_apt] dpkgcmdline:  /usr/bin/dpkg --status-fd 19 --no-triggers --unpack --auto-deconfigure /var/cache/apt/archives/nextdns_1.8.0_arm64.deb
[parse_pkg_files] cmdargs:  /usr/bin/dpkg
[cache_add_action] PKGFILES:  /var/cache/apt/archives/nextdns_1.8.0_arm64.deb
nextdns: action=unpack, package=/data/dpkg-cache/stretch/packages/nextdns_1.8.0_arm64.deb mark=manual
<-# ubnt-dpkg-cache unpack
Setting up nextdns (1.8.0) ...
NextDNS installed and started using systemd init
#-> ubnt-dpkg-cache configure
<-# ubnt-dpkg-cache configure
ERROR: Installation failed: binary not installed in /data/nextdns
ERROR: install: exit 0
useful!
source:https://uonfu.com/
Github User Rank List