Your message dated Sun, 6 Apr 2014 09:01:44 +0200
with message-id <[email protected]>
and subject line Re: Bug#743745: Fails to install via aptitude: indecipherable 
error messages regarding locale
has caused the Debian Bug report #743745,
regarding Fails to install via aptitude: indecipherable error messages 
regarding locale
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
743745: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743745
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: postgresql
Version: no-f***ing-idea

First of all I apologize if this bug report is not in the correct format. If that is the case, I personally blame the choice to use email as the only way of reporting bugs rather than having a human-friendly web-based bugtracker. Also, I tried to use bugreport but it keeps failing to connect to "Debian BTS".

Now the bug.

I tried to install postgresql via
apt-get install postgresql but it fails with unintelligible error messages that have something to do with locale:


-------------------
# apt-get install postgresql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpq5 postgresql-8.4 postgresql-client-8.4 postgresql-client-common
  postgresql-common
Suggested packages:
  oidentd ident-server postgresql-doc-8.4
The following NEW packages will be installed:
  libpq5 postgresql postgresql-8.4 postgresql-client-8.4
  postgresql-client-common postgresql-common
0 upgraded, 6 newly installed, 0 to remove and 150 not upgraded.
Need to get 7752 kB of archives.
After this operation, 21.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://debian.mirrors.ovh.net/debian/ squeeze/main postgresql-client-common all 113+squeeze1 [55.2 kB] Get:2 http://debian.mirrors.ovh.net/debian/ squeeze/main postgresql-common all 113+squeeze1 [126 kB] Get:3 http://security.debian.org/ squeeze/updates/main libpq5 amd64 8.4.20-0squeeze1 [174 kB] Get:4 http://security.debian.org/ squeeze/updates/main postgresql-client-8.4 amd64 8.4.20-0squeeze1 [1602 kB] Get:5 http://security.debian.org/ squeeze/updates/main postgresql-8.4 amd64 8.4.20-0squeeze1 [5760 kB] Get:6 http://security.debian.org/ squeeze/updates/main postgresql all 8.4.20-0squeeze1 [34.3 kB]
Fetched 7752 kB in 0s (10.3 MB/s)
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 33, in <module>
    from ALChacks import *
  File "/usr/share/apt-listchanges/ALChacks.py", line 32, in <module>
sys.stderr.write(_("Can't set locale; make sure $LC_* and $LANG are correct!\n"))
NameError: name '_' is not defined
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_GB:en",
        LC_ALL = (unset),
        LC_PAPER = "es_ES.UTF-8",
        LC_ADDRESS = "es_ES.UTF-8",
        LC_MONETARY = "es_ES.UTF-8",
        LC_NUMERIC = "es_ES.UTF-8",
        LC_TELEPHONE = "es_ES.UTF-8",
        LC_IDENTIFICATION = "es_ES.UTF-8",
        LC_MEASUREMENT = "es_ES.UTF-8",
        LC_TIME = "es_ES.UTF-8",
        LC_NAME = "es_ES.UTF-8",
        LANG = "en_GB"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
Selecting previously deselected package libpq5.
(Reading database ... 42740 files and directories currently installed.)
Unpacking libpq5 (from .../libpq5_8.4.20-0squeeze1_amd64.deb) ...
Selecting previously deselected package postgresql-client-common.
Unpacking postgresql-client-common (from .../postgresql-client-common_113+squeeze1_all.deb) ...
Selecting previously deselected package postgresql-client-8.4.
Unpacking postgresql-client-8.4 (from .../postgresql-client-8.4_8.4.20-0squeeze1_amd64.deb) ...
Selecting previously deselected package postgresql-common.
Unpacking postgresql-common (from .../postgresql-common_113+squeeze1_all.deb) ...
Selecting previously deselected package postgresql-8.4.
Unpacking postgresql-8.4 (from .../postgresql-8.4_8.4.20-0squeeze1_amd64.deb) ...
Selecting previously deselected package postgresql.
Unpacking postgresql (from .../postgresql_8.4.20-0squeeze1_all.deb) ...
Processing triggers for man-db ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libpq5 (8.4.20-0squeeze1) ...
Setting up postgresql-client-common (113+squeeze1) ...
Setting up postgresql-client-8.4 (8.4.20-0squeeze1) ...
update-alternatives: using /usr/share/postgresql/8.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode.
Setting up postgresql-common (113+squeeze1) ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Adding user postgres to group ssl-cert
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Setting up postgresql-8.4 (8.4.20-0squeeze1) ...
Error: The locale requested by the environment is invalid.
Error: could not create default cluster. Please create it manually with

  pg_createcluster 8.4 main --start

or a similar command (see 'man pg_createcluster').
update-alternatives: using /usr/share/postgresql/8.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode.
Setting up postgresql (8.4.20-0squeeze1) ...
#
----------------------

--- End Message ---
--- Begin Message ---
Re: Matteo Sisti Sette 2014-04-05 <[email protected]>
> Package: postgresql
> Version: no-f***ing-idea
> 
> First of all I apologize if this bug report is not in the correct
> format.

Hi Matteo,

except for the somewhat non-standard version number above, the report
is in the correct format, thanks for reporting.

> I tried to install postgresql via
> apt-get install postgresql but it fails with unintelligible error
> messages that have something to do with locale:

As the apt-listchanges and man-db errors below indicate, this isn't a
PostgreSQL problem, but a system-wide one. Most likely, your
/etc/locale.gen file is messed up, or locales have never been properly
initialized. I'd suggest running

dpkg-reconfigure locales

to get things back on track. You can then use the pg_createcluster
command to create a database cluster.

Fwiw, PostgreSQL 8.4 (and Debian squeeze) will be end-of-line soonish;
if you are setting up a new DB server now, consider upgrading to
Wheezy and 9.1 (or later).

> Traceback (most recent call last):
>   File "/usr/bin/apt-listchanges", line 33, in <module>
>     from ALChacks import *
>   File "/usr/share/apt-listchanges/ALChacks.py", line 32, in <module>
>     sys.stderr.write(_("Can't set locale; make sure $LC_* and $LANG
> are correct!\n"))

> Processing triggers for man-db ...
> locale: Cannot set LC_ALL to default locale: No such file or directory

> Setting up postgresql-8.4 (8.4.20-0squeeze1) ...
> Error: The locale requested by the environment is invalid.
> Error: could not create default cluster. Please create it manually with
> 
>   pg_createcluster 8.4 main --start
> 
> or a similar command (see 'man pg_createcluster').

I'm closing the bug now, as there's nothing to fix in PostgreSQL. (And
I have no idea which other package to assign it to, but my feeling is
that this is a transient error caused by maloperation.)

Christoph
-- 
[email protected] | http://www.df7cb.de/

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

Reply via email to