I've followed the last example in this thread:
In other words:
~$ sudo service dbus start * Starting system message bus dbus [ OK ] ~$ sudo service avahi-daemon start * Starting Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ] ~$ avahi-resolve --name rpi.local Failed to resolve host name 'rpi.local': Timeout reached
This was done after installing the packages listed in this answer.
rpi.localcan be resolved by Windows.
Windows 10 Version 10.0.16299 build 16299
~$ lsb_release -a
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial