ubuntu20.04阿里源
vim /etc/apt/source.list deb http://mirrors.aliyun.com/ubuntu/ focal main restricted deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted deb http://mirrors.aliyun.com/ubuntu/ focal universe deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe deb http://mirrors.aliyun.com/ubuntu/ focal multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted deb http://mirrors.aliyun.com/ubuntu/ focal-security universe deb http://mirrors.aliyun.com/ubuntu/ focal-security multiverse apt-get update apt-get upgrade 安装中文语言包 1.查看当前安装的所有语言包 locale -a 查看是否有: zh_CN.utf8 # 中文语言包 en_US.utf8 # 英文语言包(默认一般都会安装) 如果没有 en_US.utf8 ,需要安装英文文语言包,输入以下命令: sudo apt-get install language-pack-en 然后添加英文支持: locale-gen en_US.UTF-8 如果没有 zh_CN.utf8 ,需要安装中文语言包,输入以下命令: sudo apt-get install language-pack-zh-hans 然后添加中文支持 locale-gen zh_CN.UTF-8 dpkg-reconfigure locales 选着中文