首先切換到root使用者(進入root和密碼在標題"安裝ubuntu18"的序號"11"處有寫)
cp /etc/apt/sources.list /etc/apt/sources.list.bak
然後編輯這個檔案,替換為
vim /etc/apt/sources.list
######## ubuntu18.04 阿里雲映象源 ###############
deb bionic main restricted universe multiverse
deb bionic-security main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
deb bionic-proposed main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
deb-src bionic main restricted universe multiverse
deb-src bionic-security main restricted universe multiverse
deb-src bionic-updates main restricted universe multiverse
deb-src bionic-proposed main restricted universe multiverse
deb-src bionic-backports main restricted universe multiverse
######## 阿里雲映象源 end ###############
然後輸入
apt-get update
爽一波網速吧 ubuntu更換阿里雲或清華映象源
ubuntu 的軟體源配置檔案是 etc apt sources.list。sudo cp etc apt sources.list etc apt sources.list backupsudo gedit etc apt sources.list用vim也行,我習慣用gedit了。用下邊的源對s...
阿里雲Centos映象源和EPEL源
centos配置yum本地源aliyun的epel源 1 本地yum源 root openstack mount dev sr0 mnt root openstack echo dev sr0 mnt iso9660 defaults 0 0 etc fstab root openstack rm ...
阿里雲Centos映象源和EPEL源
centos配置yum本地源aliyun的epel源 1 本地yum源 root openstack mount dev sr0 mnt root openstack echo dev sr0 mnt iso9660 defaults 0 0 etc fstab root openstack rm ...