LXD, Snap, Debian and Let's Encrypt

Take a look at, or are you trying to install snap core inside your container? Maybe installing it separately first will help anyway.