Debian: Locale en US does not exist any more

From FVue
Jump to: navigation, search

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:

  1. Open /etc/default/locale.gen. Uncomment en_US UTF-8 and comment en_US.UTF-8 UTF-8
  2. Uncomment LANG="en_US" in /etc/environment
  3. Run dpkg-reconfigure locales

Comments

blog comments powered by Disqus