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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM