Skip to content

Commit

Permalink
Create Debian切换系统语言.md
Browse files Browse the repository at this point in the history
  • Loading branch information
magicianlib authored Mar 27, 2024
1 parent 77b1a1b commit fa70d30
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 知识笔记/Debian切换系统语言.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
我在安装 Debian 时为了解决中文输入法问题,所以在安装时默认选择中文简体。安装完成之后我突然想将系统语言切换回英文怎么办?

这个过程其实非常简单,只需要修改系统语言设置即可。具体步骤如下:

1、打开终端,输入命令 `sudo dpkg-reconfigure locales`

2、在出现的界面中选择 `en_US.UTF-8`,即英文语言设置。如果没有该选项,可以输入命令 `sudo locale-gen en_US.UTF-8` 添加。

![dpkg-reconfigure-locales-MTcxMTUwNTYyOAo.png](http://linux-media.knowledge.ituknown.cn/ReconfigureLocales/ReconfigureLocales/dpkg-reconfigure-locales-MTcxMTUwNTYyOAo.png)

确认之后会进一步提示选择系统默认语言,这里选择

![ReconfigureLocales/setting-default-locales-MTcxMTUwNTYxNgo=.png](http://linux-media.knowledge.ituknown.cn/ReconfigureLocales/ReconfigureLocales/setting-default-locales-MTcxMTUwNTYxNgo=.png)

3、如果上面语言设置完成之后没有提示选择系统默认语言,那么可以通过输入命令 `sudo update-locale LANG=en_US.UTF-8` 实现更新系统语言设置。

4、重新启动系统,英文语言设置即生效。

值得注意的是,切换语言可能会影响到系统中某些本地化的程序的使用,因此需要注意与相关应用程序的兼容性。

0 comments on commit fa70d30

Please sign in to comment.