$ sudo wifi-ap.config get
debug: true
dhcp.lease-time: 12h
dhcp.range-start: 10.0.60.2
dhcp.range-stop: 10.0.60.199
disabled: true
share.disabled: false
share.network-interface: wlp4s0
wifi.address: 10.0.60.1
wifi.channel: 11
wifi.country-code:
wifi.hostapd-driver: nl80211
wifi.interface: wlp4s0
wifi.interface-mode: virtual
wifi.netmask: 255.255.255.0
wifi.operation-mode: g
wifi.security: wpa2
wifi.security-passphrase: *********
wifi.ssid: *********
$ sudo wifi-ap.status
ap.active: false
$ journalctl --no-pager -u snap.wifi-ap.management-service
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: 2020/01/19 20:13:40 http: multiple response.WriteHeader calls
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + . /snap/wifi-ap/355/bin/helper.sh
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' false = true ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + DEFAULT_ACCESS_POINT_INTERFACE=ap0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + ip link show wlp4s0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: 3: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: link/ether 28:e3:47:a7:c8:84 brd ff:ff:ff:ff:ff:ff
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + trap do_cleanup TERM
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + do_cleanup
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' -f /var/snap/wifi-ap/355/hostapd.pid ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' -f /var/snap/wifi-ap/355/dnsmasq.pid ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + iface=wlp4s0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' virtual = virtual ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + iface=ap0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' false = false ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + iptables --table nat --delete POSTROUTING --out-interface wlp4s0 -j MASQUERADE
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: iptables: No chain/target/match by that name.
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + true
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + iptables --delete FORWARD --in-interface ap0 -j ACCEPT
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: iptables: Bad rule (does a matching rule exist in that chain?).
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + true
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + sysctl -w net.ipv4.ip_forward=0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: net.ipv4.ip_forward = 0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + ip address flush ap0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: Device "ap0" does not exist.
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' virtual = virtual ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + /snap/wifi-ap/355/bin/iw dev ap0 del
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: command failed: No such device (-19)
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + iface=wlp4s0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' virtual = virtual ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + iface=ap0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: ++ /snap/wifi-ap/355/bin/iw dev wlp4s0 info
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: ++ awk '/channel/{print$2}'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + channel_in_use=11
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' -z 11 ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' 11 '!=' 11 ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' virtual = virtual ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + iface=ap0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + /snap/wifi-ap/355/bin/iw dev wlp4s0 interface add ap0 type __ap
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + wait_until_interface_is_available ap0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + does_interface_exist ap0
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' -d /sys/class/net/ap0 ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' virtual = direct ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + is_nm_running
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: ++ /snap/wifi-ap/355/bin/nmcli -t -f RUNNING general
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + nm_status=running
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' running = running ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + /snap/wifi-ap/355/bin/nmcli d set ap0 managed no
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + ip link set dev ap0 up
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: RTNETLINK answers: Name not unique on network
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + echo 'ERROR: Failed to enable WiFi network interface '\''ap0'\'''
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: ERROR: Failed to enable WiFi network interface 'ap0'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' virtual = virtual ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + /snap/wifi-ap/355/bin/iw dev ap0 del
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + is_nm_running
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: ++ /snap/wifi-ap/355/bin/nmcli -t -f RUNNING general
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + nm_status=running
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + '[' running = running ']'
1月 19 20:13:40 yly-Aspire wifi-ap.management-service[1604]: + /snap/wifi-ap/355/bin/nmcli d set ap0 managed yes
1月 19 20:13:41 yly-Aspire wifi-ap.management-service[1604]: Error: Device 'ap0' not found.
1月 19 20:13:41 yly-Aspire wifi-ap.management-service[1604]: + exit 1
Maybe there was left-over from a previous run of wifi-ap? Which is the output of 'iw list' and 'ip link show? Also, what happens if you reboot the device?