Comment 27 for bug 162517

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 162517] Re: postgresql does not start

Hi,

Wolf Rogner [2008-01-22 20:23 -0000]:
> Selecting previously deselected package postgresql-8.2.
> (Reading database ... 59446 files and directories currently installed.)
> Unpacking postgresql-8.2 (from .../postgresql-8.2_8.2.6-0ubuntu0.7.10.1_amd64.deb) ...
> Setting up postgresql-8.2 (8.2.6-0ubuntu0.7.10.1) ...
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
> LANGUAGE = (unset),
> LC_ALL = (unset),
> LC_TIME = "de_AT.utf8",
> 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

This is exactly what I mentioned above: Your locales are invalid. If
you do

  sudo locale-gen de_AT.UTF-8 en_US.UTF-8

it will work fine. The scripts deliberately don't create a DB with a
broken locale, since this would lead to wrong collation and string
operations.

 status invalid