Login complains "Your environment specifies an invalid locale", doesn't say which locale

Bug #1558069 reported by Graham Leggett
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Scott Moser
cloud-init (Ubuntu)
Fix Released

Bug Description

On login to a brand new trusty machine with all updates applied, the following message appears:

WARNING! Your environment specifies an invalid locale.
 This can affect your user experience significantly, including the
 ability to manage packages. You may install the locales by running:

   sudo apt-get install language-pack-UTF-8
   sudo locale-gen UTF-8

To see all available language packs, run:
   apt-cache search "^language-pack-[a-z][a-z]$"
To disable this message for all users, run:
   sudo touch /var/lib/cloud/instance/locale-check.skip

- The message complains about an invalid locale, but then doesn't tell you what the locale is or what is invalid about it.

- The suggested advice "sudo apt-get install language-pack-UTF-8" breaks as follows:

ubuntu@z4-dev-black-wap01:~$ sudo apt-get install language-pack-UTF-8
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package language-pack-UTF-8

The above warning needs to be fixed to contain the locate that is invalid, and to provide accurate package names in the advice given to fix it.

Tags: trusty

Related branches

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote : Re: [Bug 1558069] [NEW] Login complains "Your environment specifies an invalid locale", doesn't say which locale

Hash: SHA512

Can you send the output of "env | grep LC_"?

This looks like your SSH client is sending an invalid locale.


Revision history for this message
Graham Leggett (minfrin-y) wrote :

Just to clarify, this bug report refers to the error message, not the underlying thing that triggers the error message.

Revision history for this message
Scott Moser (smoser) wrote :

fixed in trunk at 1195

Changed in cloud-init:
status: New → Fix Committed
assignee: nobody → Scott Moser (smoser)
importance: Undecided → Low
Changed in cloud-init (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.7.7~bzr1200-0ubuntu1

cloud-init (0.7.7~bzr1200-0ubuntu1) xenial; urgency=medium

  * New upstream snapshot.
    - fix adding of users when no group is specified (LP: #1562918)
    - fix write_files with compressed content (LP: #1565638)
    - systemd: do not specify After of obsolete syslog.target (LP: #1536964)
    - chef: fix chef installation from gems (LP: #1553345)
    - disk_setup: correctly send force to mkfs on block devices (LP: #1548772)
    - locale: list unsupported environment settings in warning (LP: #1558069)
    - fix NoCloud and other datasources if no datasource config (LP: #1514407)

 -- Scott Moser <email address hidden> Wed, 06 Apr 2016 13:07:27 -0400

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

This is fixed in cloud-init 0.7.7.

Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.