[SRU] ubuntu-vm-builder should set up a locale, timezone, etc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-vm-builder (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ubuntu-vm-builder
By default ubuntu-vm-builder (e.g. in hardy) doesn't set up a locale other than "C". When I log in to the virtual machine via ssh, LANG=en_US.UTF-8 is picked up from my environment on the host. Installing things from within the vm like postgresql then leads to problems like this:
Setting up postgresql-8.3 (8.3.1-1) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Error: The locale requested by the environment is invalid.
Error: could not create default cluster. Please create it manually with
pg_createcluster 8.3 main --start
ubuntu-vm-builder should set up the proper locale, as well as a preferred timezone and any other similar settings that users are used to from the standard ubuntu installation methods. Defaults could be set based on the build environment, with options to override them.
Related branches
Changed in ubuntu-vm-builder: | |
status: | New → In Progress |
Changed in ubuntu-vm-builder: | |
status: | In Progress → Fix Committed |
importance: | Undecided → Low |
Changed in ubuntu-vm-builder: | |
milestone: | none → ubuntu-8.04.1 |
Changed in ubuntu-vm-builder: | |
milestone: | ubuntu-8.04.1 → none |
I've pushed a branch to fix this and put a version in my ppa (https:/ /launchpad. net/~nijaba/ +archive).
Could you please give it a shot and tell us if it fixes your issue?