The same thing happens when debootstrap is used under Debian 9.
A workaround for this is using: --include=gnupg2
If you are using "lb build" you can configure it like this:
lb config --debootstrap-options="--include=gnupg2"
I think that the correct package to use must be gnupg2 according to thi
I have the same issue.
It seems to be a permission problem caused because the "ubuntu" user runs
/usr/lib/ubiquity/localechooser/post-base-installer (instead of root).
So, when the script try to execute:
sed -i 's/^# LANG=$/LANG="'es_ES.UTF-8'"/' /target/etc/default/locale
echo $?
--> 4
"sed"