Nginx install fail on ubutnu 18.04

New bare metal server with bionic host and current snap lxd 4.
lxc launch ubuntu:18.04 c1
lxc exec c1 – bash
apt install nginx

result:
Setting up nginx-core (1.14.0-0ubuntu1.7) …
Job for nginx.service failed because the control process exited with error code.
See “systemctl status nginx.service” and “journalctl -xe” for details.
invoke-rc.d: initscript nginx, action “start” failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-04-10 11:46:36 UTC; 6ms ago
Docs: man:nginx(8)
Process: 5080 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Apr 10 11:46:36 cloud systemd[1]: Starting A high performance web server and a reverse proxy server…
Apr 10 11:46:36 cloud nginx[5080]: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Apr 10 11:46:36 cloud nginx[5080]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 10 11:46:36 cloud systemd[1]: nginx.service: Control process exited, code=exited status=1
Apr 10 11:46:36 cloud systemd[1]: nginx.service: Failed with result ‘exit-code’.
Apr 10 11:46:36 cloud systemd[1]: Failed to start A high performance web server and a reverse proxy server.
dpkg: error processing package nginx-core (–configure):
installed nginx-core package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
nginx-core
E: Sub-process /usr/bin/dpkg returned an error code (1)

You appear to have IPv6 disabled on the system or some similar problem.

Thanks Stefan, in case someone else runs into this more info here https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1743592