1. 程式人生 > >Linux 配置中文環境

Linux 配置中文環境

安裝 工具 pac amp man sta 換源 軟件源 date

系統升級

換源

更新軟件源和軟件包

  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

Linux 配置中文環境