Linux 配置中文环境

系统升级

换源

更新软件源和软件包

  1. sudo apt update && sudo apt upgrade -y

配置中文环境

  1. 安装中文语言包

sudo apt install -y language-pack-zh-hans language-pack-zh-hans-base

  1. 设置本地环境变量

echo "LANG=zh_CN.UTF-8" >> ~/.profile

  1. 重启

reboot

ubuntu 中 man 显示中文

  1. 安装 man 工具

sudo apt-get install manpages-posix manpages-posix-dev

  1. 安装 man 中文语言包

sudo apt-get install manpages-zh

猜你喜欢

转载自www.cnblogs.com/magiclor/p/9461396.html