76 字
1 分钟
Linux 修改语言
修改语言
Debian
sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/g' /etc/locale.gensudo locale-genecho 'LANG="zh_CN.UTF-8"LANGUAGE="zh_CN:zh"' | sudo tee /etc/default/localesed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gensudo locale-genecho 'LANG="en_US.UTF-8"LANGUAGE="en_US:en"' | sudo tee /etc/default/locale或使用 sudo dpkg-reconfigure locales 进行重新配置
Ubuntu
sudo apt install language-pack-zh-hanssudo update-locale LANG=zh_CN.UTF-8sudo apt install language-pack-ensudo update-locale LANG=en_US.UTF-8Fedora
sudo dnf install langpacks-zh_CNsudo localectl set-locale LANG=zh_CN.UTF-8sudo dnf install langpacks-ensudo localectl set-locale LANG=en_US.UTF-8 最后更新于 2025-03-13,距今已过 274 天
部分内容可能已过时