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 選着中文