原文地址:http://people.debian.org/~schultmc/locales.html

The Easy Way

  1. Install debconf (i.e. runapt-get updatethenapt-get install debconf, as root)
  2. Rundpkg-reconfigure localesas root

The Hard Way

  1. Edit/etc/locale.genas root. If/etc/locale.gendoes not exist, create it. An example/etc/locale.genis below.
  2. Run/usr/sbin/locale-genas root

A sample/etc/locale.gen

# This file lists locales that you wish to have built. You can find a list
# of valid supported locales at /usr/share/i18n/SUPPORTED. Other
# combinations are possible, but may not be well tested. If you change
# this file, you need to rerun locale-gen.
#
# XXX GENERATED XXX
#
# NOTE!!! If you change this file by hand, and want to continue
# maintaining manually, remove the above line. Otherwise, use the command
# "dpkg-reconfigure locales" to manipulate this file. You can manually
# change this file without affecting the use of debconf, however, since it
# does read in your changes.

en_US.UTF-8 UTF-8

相关文章:

  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2021-07-27
  • 2021-11-15
  • 2021-08-01
  • 2022-02-05
猜你喜欢
  • 2021-11-16
  • 2021-08-24
  • 2021-08-19
  • 2022-12-23
  • 2022-01-20
  • 2021-05-08
  • 2022-01-02
相关资源
相似解决方案