[Pkg-postgresql-public] Bug#791526: Bug#791526: Bug#791526: postgresql-9.4: postgresql needs locales-all to create cluster on install

Christoph Berg myon at debian.org
Mon Aug 31 19:30:49 UTC 2015


Control: tags -1 moreinfo

Re: Malte 2015-07-07 <2251134.eg2xECcdoV at localhost>
> ###
> # locale
> LANG=en_US.UTF-8
> LANGUAGE=
[...]
> LC_ALL=en_US.UTF-8

You seem to explicitly have LC_ALL set in the environment (note
there's no "quotes" around the value). While this shouldn't cause any
problems, it's not the supposed default setup; you should set LANG and
possibly selected LC_* entries, and only set LC_ALL to override all
other settings to run individual commands.

That said, could you retry with LC_ALL unset?

> ###
> # cat /etc/default/locale
> #  File generated by update-locale
> LANG=en_US.UTF-8

Looks ok.

> ###
> # apt-get install postgresql-9.4
> Setting up postgresql-9.4 (9.4.3-0+deb8u1) ...
> Error: The locale requested by the environment is invalid.
> Error: could not create default cluster. Please create it manually with
> 
>   pg_createcluster 9.4 main --start

The first error is from pg_createcluster:

# check validity of locale
unless (setlocale (LC_ALL, "")) {
    error ('The locale requested by the environment is invalid.')
}

... which means your locales aren't properly set up (even if "locale"
doesn't print any warning).

Does the pg_createcluster command work when you try it manually? Which
locale does the created cluster get (show the output of "psql -l")?

Christoph
-- 
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20150831/f3705eae/attachment-0001.sig>


More information about the Pkg-postgresql-public mailing list