注:截图时系统已改为中文,请按实际操作
1.安装中文包
apt update
apt install language-pack-zh-hans -y
![图片[1]-Ubuntu命令行改中文-白露小站](https://mybailu.cn/wp-content/uploads/2023/10/99590562a541857030b8c6edb32af207.png)
2.将语言设置为简体中文
localectl set-locale LANG=zh_CN.utf8
![图片[2]-Ubuntu命令行改中文-白露小站](https://mybailu.cn/wp-content/uploads/2023/10/80229ec0c7880349efc3762113ef4bc0.png)
3.重启系统/重新连接SSH
重启系统:控制台输入reboot
4.测试一下是否设置成功
apt
![图片[3]-Ubuntu命令行改中文-白露小站](https://mybailu.cn/wp-content/uploads/2023/10/f2ec9b9778813c517b84dc1186f5ce0b.png)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
注:截图时系统已改为中文,请按实际操作
apt update
apt install language-pack-zh-hans -y
localectl set-locale LANG=zh_CN.utf8
重启系统:控制台输入reboot
apt