新裝ubuntu 下載源慢,無法下載
直接看最後。。
卡在 curtin command apt-config或者cuttin command in-target等問題基本都是源太慢
下載ssh服務
ssh上wp新賬戶,su到root
root賬戶登錄限制,需要改ssh.conf配置,這裏通過小技巧跳過
cp /etc/apt/sources.list /etc/apt/sources.list.back
rm sources.list
vim sources.list
寫入
#阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
apt-get update
apt-get upgrade
reboot
還是不行,後來發現,直接在鏡像哪裏把鏡像換成
http://mirrors.163.com/ubuntu/
就行了。。。