I have Home Assistant Supervised. In order for it to be a supported install, I am required to run Network Manager. I have it installed and set up like here: Network Manager - Home Assistant
The one difference is that I have assigned a static IP address. So my /etc/network/interfaces file look like this:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface enp0s3 inet static
address 192.168.xxx.x
netmask 255.255.255.0
gateway 192.168.xxx.x
dns-nameservers xxx.xx.x.xx, xxx.xx.x.xx
The problem is every time I reboot the network manger is clearing the /etc/resolv.conf file and leaving it empty. Then if i try to execute a sudo apt-get update, it cannot find any of the locations.