首页 > 其他 > 详细

apt-get 更新系统字符集 locale

时间:2021-09-11 10:09:02      阅读:32      评论:0      收藏:0      [点我收藏+]
  1. 备份与更新apt-get 源
    1. cd /etc/apt/
      cp sources.list sources.list_bak

      echo "deb http://mirrors.163.com/debian/ buster main non-free contrib" >/etc/apt/sources.list
      echo "deb http://mirrors.163.com/debian/ buster-updates main non-free contrib" >>/etc/apt/sources.list
      echo "deb http://mirrors.163.com/debian/ buster-backports main non-free contrib" >>/etc/apt/sources.list
      echo "deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib" >>/etc/apt/sources.list
      echo "deb-src http://mirrors.163.com/debian/ buster main non-free contrib" >>/etc/apt/sources.list
      echo "deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib" >>/etc/apt/sources.list
      echo "deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib" >>/etc/apt/sources.list
      echo "deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib" >>/etc/apt/sources.list


      apt-get update

  2. 更新与安装中文字符集locale
    1. apt-get install locales
      dpkg-reconfigure locales
      #选择:486 【中文字符集】
      #选择:3 【中文字符集】
    2. 技术分享图片

       

       

  3. 修改环境变量并生效
    1. echo "export LANG=”zh_CN.UTF-8″" >>.bashrc
      source .bashrc
    2. 技术分享图片

       

       

 

apt-get 更新系统字符集 locale

原文:https://www.cnblogs.com/giser007/p/15250822.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!