Command
- 查看
dpkg-reconfigure
的功能
$ whatis dpkg-reconfigure
dpkg-reconfigure (8) - reconfigure an already installed package
Debian package reconfigure - 重新配置已安装好的包。
这个命令在整个Debian系的Linux发行版中都可以使用,如Debian, Ubuntu, Mint, Kali等。
- 设置语言环境
sudo dpkg-reconfigure locales
- 什么是
Locales
Locales are a framework to switch between multiple languages and allow users to use their language, country, characters, collation order, etc.
Please choose which locales to generate. UTF-8 locales should be chosen by default, particularly for new installations. Other character sets may be useful for backwards compatibility with older systems and software.
Locales to be generated:
- 多选-选择需要用到的语言环境
选中两项即可:
en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
- 选择默认的语言环境
Many packages in Debian use locales to display text in the correct language for the user. You can choose a default locale for the system from the generated locales.
This will select the default language for the entire system. If this system is a multi-user system where not all users are able to speak the default language, they will experience difficulties.
Default locale for the system environment:
即:选择一个默认的语言环境。
选择zh_CN.UTF-8 UTF-8
即可。
- 重启机器,使最新配置生效。
reboot
- 开机会提示:要不要更新home目录下的几个常用文件夹的名称。
我选不要。Don't ask me again
Keep Old Name