missing locales

原文地址:http://codewut.de/content/missing-locales-under-debian

This drives me crazy! Every time I debootstrap a debian or ubuntu machine the resulting root system will lack properly set up locales. dpkg-reconfigure locales & derivates won't help since the system does not know what locales it should generate - and for some reason it does not show that nice ncurses UI where you were able to pick the locales you would like to have the support for.

So, there goes another blog entry which should act as my personal notepad for future accidents like this:

 

  1. root@baracus: # cat /usr/share/i18n/SUPPORTED | egrep en_US > /var/lib/locales/supported.d/en
  2. root@baracus: # cat /usr/share/i18n/SUPPORTED | egrep de_DE > /var/lib/locales/supported.d/de
  3. root@baracus: # locale-gen
  4. Generating locales...
  5. de_DE.ISO -8859 -1... up-to- date
  6. de_DE.UTF -8... up-to- date
  7. de_DE.ISO -8859 -15@euro... up-to- date
  8. en_US.ISO -8859 -1... done
  9. en_US.UTF -8... done
  10. Generation complete.

P.S.

You might need to reinstall the locales package afterwards:

  1. sudo apt-get install --reinstall locales
  2. export LANG= "de_DE.utf8"
  3. YAY!

转载于:https://www.cnblogs.com/zhangjun516/p/3216650.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值