Hi
When installing ES 5.4.0 on Ubuntu in an LXD container you need to install with the following command
export ES_SKIP_SET_KERNEL_PARAMETERS=true; apt install elasticsearch
The ES_SKIP_SET_KERNEL_PARAMETERS=true env variable is necesarl because there are kernel parameters that are tuned on installation that are not available to the container and installation fails.