当前位置: 首页 > ds >正文

Ubuntu配置中文语言

一、配置中文语言


  1. 更新软件包列表,安装中文语言包(zh-hans表示简体中文,如果需要安装繁体中文可以使用zh-hant)
sudo apt updatesudo apt install language-pack-zh-hans language-pack-gnome-zh-hans -y
  1. 设置系统语言为中文
sudo update-locale LANG=zh_CN.UTF-8
  1. 设置桌面环境语言,打开语言设置界面,选择中文作为首选语言
sudo dpkg-reconfigure locales
  1. 在对话框中找到 zh_CN.UTF-8 输入对应编号,然后回车确认
...
489. zh_CN.GB18030 GB18030
490. zh_CN.GBK GBK
491. zh_CN.UTF-8 UTF-8
492. zh_HK BIG5-HKSCS
493. zh_HK.UTF-8 UTF-8(Enter the items you want to select, separated by spaces.)Locales to be generated: 491This 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.1. None  2. C.UTF-8  3. zh_CN.UTF-8  4. zh_CN.UTF-8  5. zh_SG.UTF-8Default locale for the system environment: 3
  1. 重新系统生效,第一次进系统可能会出现 “语言支持没有安装完整” 的提示,点击安装即可
sudo reboot

二、配置英文语言


  1. 更新软件包列表,确保已安装英文语言包
sudo apt updatesudo apt install language-pack-en language-pack-gnome-en -y
  1. 设置系统语言为英文(美国)
sudo update-locale LANG=en_US.UTF-8
  1. 设置桌面环境语言,打开语言设置界面,选择英文作为首选语言
sudo dpkg-reconfigure locales
  1. 在对话框中找到 en_US.UTF-8 输入对应编号,然后回车确认
...
157. en_US ISO-8859-1
158. en_US.ISO-8859-15 ISO-8859-15
159. en_US.UTF-8 UTF-8
160. en_ZA ISO-8859-1
161. en_ZA.UTF-8 UTF-8(Enter the items you want to select, separated by spaces.)Locales to be generated: 159This 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.1. None         7. en_IL         13. en_US.UTF-8  19. en_ZA.UTF-82. C.UTF-8      8. en_ZM         14. en_GB.UTF-8  20. en_CA.UTF-83. en_US.UTF-8  9. en_ZW.UTF-8   15. en_AU.UTF-8  21. en_IE.UTF-84. en_HK.UTF-8  10. en_NZ.UTF-8  16. en_SG.UTF-8  22. zh_CN.UTF-85. en_DK.UTF-8  11. en_PH.UTF-8  17. en_BW.UTF-8  23. zh_SG.UTF-86. en_IN        12. en_NG        18. en_AGDefault locale for the system environment: 3
  1. 重新系统生效
sudo reboot
http://www.xdnf.cn/news/10605.html

相关文章:

  • GoldenEye
  • 机器学习-ROC曲线​​ 和 ​​AUC指标
  • 内存管理 : 06 内存换出
  • 不使用绑定的方法
  • 剑指offer hot100 第三周
  • 邂逅Webpack和打包过程
  • 基于python大数据的音乐可视化与推荐系统
  • hadoop完整安装教程(附带jdk1.8+vim+ssh安装)
  • [AI算法] LLM中的gradient checkpoint机制
  • Office办公文档软件安装包2024版
  • Ubuntu终端性能监视工具
  • 概率单纯形(Probability Simplex)
  • 关于神经网络中的激活函数
  • 【Linux命令】scp远程拷贝
  • 什么是promise
  • UI 设计|提高审美|极简扁平过时吗?
  • “人单酬“理念:财税行业的自我驱动革命
  • ZLG ZCANPro,ECU刷新,bug分享
  • 系统架构设计师(一):计算机系统基础知识
  • 【C++高级主题】命令空间(六):重载与命名空间
  • 8天Python从入门到精通【itheima】-60~61
  • 笔试笔记(运维)
  • LeetCode - 965. 单值二叉树
  • 计算机网络第1章(下):网络性能指标与分层模型全面解析
  • PCB设计教程【强化篇】——USB拓展坞PCB布线
  • javaEE->多线程:定时器
  • 【Hot 100】45. 跳跃游戏 II
  • Python训练第四十一天
  • 【创新实训个人博客】实现了新的前端界面
  • CP4-OFDM模糊函数原理及仿真