[Pkg-postgresql-public] Bug#743745: Fails to install via aptitude: indecipherable error messages regarding locale

Matteo Sisti Sette matteosistisette at gmail.com
Sat Apr 5 21:45:16 UTC 2014


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) ...
#
----------------------



More information about the Pkg-postgresql-public mailing list