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 【中文字符集】
  3. 修改环境变量并生效
    1. echo "export LANG=”zh_CN.UTF-8″" >>.bashrc
      source .bashrc
  4.  参考连接
    1.   

      Debian 国内常用镜像源

    2. Debian下安装locale并设置zh_CN.UTF-8

      1.   https://www.jiloc.com/42865.html
posted on 2021-09-10 12:02  giser007  阅读(842)  评论(0)    收藏  举报