Debian: Locale en US does not exist any more
From FVue
Contents
Problem
When I try to upgrade my Debian system, I receive this error:
$ sudo apt-get upgrade ... Starting PostgreSQL 8.3 database server: mainError: The server must be started under ↵ the locale en_US which does not exist any more ... E: Sub-process /usr/bin/dpkg returned an error code (1)
Environment
- Debian-5.0.8 (Lenny)
Solution
I'd messed with the original Debian Lenny `locale' settings. See also: http://wiki.debian.org/Locale. Restoring them:
- Open
/etc/default/locale.gen
. Uncommenten_US UTF-8
and commenten_US.UTF-8 UTF-8
- Uncomment
LANG="en_US"
in/etc/environment
- Run
dpkg-reconfigure locales
Advertisement