一般狀況下阿里雲的鏡像源(http://mirrors.aliyun.com/ubuntu/)用得比較多ubuntu
可是也不排除因網絡環境致使的某個鏡像源訪問慢問題網絡
那麼就能夠配置爲自動選擇鏡像源進行更新ionic
修改 /etc/apt/sources.list 內容阿里雲
以18.04爲例rest
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-backports main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-proposed main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main restricted universe multiverse deb-src mirror://mirrors.ubuntu.com/mirrors.txt bionic main restricted universe multiverse deb-src mirror://mirrors.ubuntu.com/mirrors.txt bionic-backports main restricted universe multiverse deb-src mirror://mirrors.ubuntu.com/mirrors.txt bionic-proposed main restricted universe multiverse deb-src mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main restricted universe multiverse deb-src mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main restricted universe multiverse
劃重點code
mirror://mirrors.ubuntu.com/mirrors.txt