步骤:

输入:

vi /var/lib/locales/supported.d/local

 

zh_CN.GB2312 加入到后面,保存。

2、执行:locale-gen

3、修改 profile 文件

vi /etc/profile

加入如下文字:

LC_ALL="zh_CN.GB2312"
LANG="zh_CN.GB2312"
export LANG  LC_ALL

4、执行:source /etc/profile

5、验证

locale 查看系统的字符集。

 


 

P.S. 这个可能和网络有关。上次在宿舍(没有网络),记得操作和这个差不多,但没成功 。

 

 

 

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-06-18
  • 2022-01-08
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2021-11-28
  • 2021-09-02
  • 2021-11-28
相关资源
相似解决方案