Control: tags -1 moreinfo

Re: Malte 2015-07-07 <2251134.eg2xECcdoV@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
-- 
[email protected] | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Pkg-postgresql-public mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-postgresql-public

Reply via email to