I am attempting to upgrade an old Ubuntu 14 Docker image to 22.04. One of the commands in the Dockerfile is ln -s /usr/share/i18n/SUPPORTED /var/lib/locales/supported.d/all
.
This is failing on Ubuntu 22.04 because the directory /var/lib/locales
doesn't exist.
- I could just create the directory before running the command, but I am not sure this will actually have the desired effect.
- On Ubuntu 14 the file
/usr/share/i18n/SUPPORTED
exists as part of the base image... but on Ubuntu 22.04 I had to install the packagelocales
to get that file to appear. - Is there another package I need to install to get the directory
/var/lib/locales
? Again I could just create the directory, but if the convention has changed creating the directory won't have any effect, since the locale files will never get picked up.
For reference here is the entire command
ln -s /usr/share/i18n/SUPPORTED /var/lib/locales/supported.d/all
locale-gen
export LANG=en_US.UTF-8