阿里雲鏡像源配置
這樣做的目的是為了提高下載速度
首先切換到root用戶(進入root和密碼在標題"安裝ubuntu18"的序號"11"處有寫)
cp /etc/apt/sources.list /etc/apt/sources.list.bak
然后編輯這個文件,替換為
vim /etc/apt/sources.list
######## Ubuntu18.04 阿里雲鏡像源 ###############
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
######## 阿里雲鏡像源 END ###############
然后輸入
apt-get update
爽一波網速吧