原文地址: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!

最新文章

  1. mysql 使用存储过程批量插数据
  2. PAT 1026. 程序运行时间(15)
  3. alv中编辑的时候quan字段小数位数被截取掉
  4. [AX2012 R3]在SSRS报表中使用QR二维码
  5. peak num
  6. spring相关资源
  7. mybatis insert前获取要插入的值
  8. Linux命令 find和mv的结合使用:查找文件,移动到某个目录
  9. SQL技术内幕-5 比较特殊 insert into 数据的写法
  10. PHP-xml-1
  11. php5.6解决curl扩展不生效的问题
  12. javascript中数据类型转换
  13. UI控件库
  14. Java线程:条件变量、原子量、线程池等
  15. 安卓高级9 用原生intent分享
  16. 从壹开始微服务 [ DDD ] 之二 ║ DDD入门 & 项目结构粗搭建
  17. 上次被人说TK不好咯,这次给你整个高大上的
  18. [转]python3之paramiko模块(基于ssh连接进行远程登录服务器执行命令和上传下载文件的功能)
  19. jquery改变字符串中部分字符的颜色
  20. PKUWC2018 5/6

热门文章

  1. MFC的BeginWaitCursor和EndWaitCursor函数
  2. C语言基础_2
  3. js中this对象,call,apply
  4. args
  5. form 上传 html 代码
  6. PHP数组的知识
  7. 使用Innosetup制作安装包的一些技巧
  8. 51单片机ALE引脚的控制(摘录)
  9. 揭开HTTP网络协议神秘面纱系列(三)
  10. ABP的Zero Sample