[英]locale-gen on ubuntu 13.04 server doesn't work
As I need my locale which is fa_IR.UTF-8
on my Ubuntu 13.04 Server
, I'm trying to install it through (sudo) locale-gen "fa_IR.UTF-8"
but I don't get any output: 因为我需要在
Ubuntu 13.04 Server
上使用fa_IR.UTF-8
语言环境,所以我试图通过(sudo) locale-gen "fa_IR.UTF-8"
安装它,但是没有任何输出:
user@s1:~# sudo locale-gen "fa_IR.UTF-8"
user@s1:~#
AND IT DOESN'T ADD ANY LOCALE to my locales! 并且它不会在我的语言环境中添加任何地方!
When I'm trying to install new locales on my Ubuntu Desktop
I don't get this error and It works well! 当我尝试在
Ubuntu Desktop
上安装新的语言环境时,没有出现此错误,并且效果很好! as follows: 如下:
user@s1:~# sudo locale-gen "fa_IR.UTF-8"
Generating locales...
fa_IR.UTF-8... done
Generation complete.
user@s1:~#
Please help me what's the problem and what shall I do? 请帮我什么问题,我该怎么办?
At last I could find the solution by doing some things manually: 最后,我可以通过手动执行一些操作找到解决方案:
check which locales are supported : 检查支持哪些语言环境:
less /usr/share/i18n/SUPPORTED
Add locale to list of generated 将语言环境添加到生成的列表中
(sudo) echo fa_IR.UTF-8 UTF-8 >> /var/lib/locales/supported.d/local
Regenerate list (it will invoke locale-gen...) 重新生成列表(它将调用locale-gen ...)
(sudo) dpkg-reconfigure locales
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.