Debian: Locale en US does not exist any more

From FVue
Jump to: navigation, search


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)


  • Debian-5.0.8 (Lenny)


I'd messed with the original Debian Lenny `locale' settings. See also: 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


blog comments powered by Disqus