Public bug reported: I have created stackoverflow issue about this also.
http://serverfault.com/questions/813567/setting-locale-permanently- fails-on-vps-machine-ubuntu- server-16-04/813574?noredirect=1#comment1034670_813574 Exhausted all available resources, but just on 16.04 system-wide locale can't be set. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: locales 2.23-0ubuntu3 ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13 Uname: Linux 4.4.0-31-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 Date: Mon Nov 7 07:12:21 2016 InstallationDate: Installed on 2016-09-07 (60 days ago) InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719) PackageArchitecture: all ProcEnviron: TERM=xterm-256color SHELL=/bin/bash PATH=(custom, no user) LC_CTYPE=UTF-8 SourcePackage: glibc UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: glibc (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1639777 Title: locale settings from /etc/environment or /etc/default/locale not picked up To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1639777/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs