标签:res nic apt-get ade aliyun 阿里 ict pre code
sudo lsb_release -a
传送门地址
注:该网页提供了阿里云支持的ubuntu系统下各个Codename版本
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
Codename=$( (lsb_release -a)|awk '{print $2}'|tail -n 1 )
echo "deb http://mirrors.aliyun.com/ubuntu/ $Codename main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ $Codename-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ $Codename-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ $Codename-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ $Codename-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ $Codename main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ $Codename-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ $Codename-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ $Codename-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ $Codename-updates main multiverse restricted universe " >sources.list
sudo apt-get update
sudo apt-get upgrade
标签:res nic apt-get ade aliyun 阿里 ict pre code
原文地址:https://www.cnblogs.com/sunxiuwen/p/10661214.html