Problem after updating "lost connection to api"

Dont forget disabling named from getting started at boot:

sudo systemctl disable bind9

Or remove/uninstall the package:

sudo apt-get remove bind9