I’ve found what was going wrong!
There was an error hidden somewhere:
Unable to open /etc/network/interfaces
See Unable to open /etc/network/interfaces
The solution was:
sudo apt install ifupdown
Don’t know why but it made the messages disappear.