DEBIAN 12安装中文包

DEBIAN 12安装中文包

安装debian12的时候,因为是服务器,所以没有选择多国语言

最近要ssh到服务器上grep一些中文,发现字符间距过宽

用vim打开也乱码

在网上找了一些网页都不好用,更难受的是apt update也不行

下面是全部的步骤,具体是什么原因懒得去找了

  1. 解决apt update的问题
sudo apt install apt-transport-https
  1. 修改软件源为中科大
# sudo vi /etc/apt/sources.list
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware

  1. 安装多语言包
sudo apt update
sudo apt-get install locales
sudo apt install locales-all
dpkg-reconfigure locales

选择zh_CN.UTF-8,并置为默认

礼毕,平身

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

友情链接更多精彩内容