apt-get 更新系统字符集 locale

  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. apt-get 更新系统字符集 locale

       

       

  3. 修改环境变量并生效
    1. echo "export LANG=”zh_CN.UTF-8″" >>.bashrc
      source .bashrc
    2. apt-get 更新系统字符集 locale

       

       

 

apt-get 更新系统字符集 locale

上一篇:[loj2469]最小方差生成树


下一篇:java参数传递(到底是值传递还是引用传递?)