天天看點

Ubuntu18.04換阿裡鏡像源藍默空間-BluishZone

Ubuntu18.04換阿裡鏡像源

  • 藍默空間-BluishZone
    • 首先檢視主機系統版本号
    • 備份系統自帶的鏡像源
    • 編輯配置檔案
    • 感受暢快如飛的網速吧~

藍默空間-BluishZone

你好! "藍默空間"的歡迎頁。如果你想學習交流PHP和Linux系統運維, 可以仔細閱讀這篇文章,然後關注文章底部公衆号擷取更多知識。

首先檢視主機系統版本号

[email protected]:~# cat /etc/issue
Ubuntu 18.04.2 LTS \n \l
           

備份系統自帶的鏡像源

編輯配置檔案

行首:d+G全部删除

i插入 shift+insert粘貼如下内容:

########   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  ###############
           

感受暢快如飛的網速吧~

[email protected]:~# apt-get update
Fetched 15.5 MB in 8s (1,871 kB/s)                                                     
Reading package lists... Done
           

公衆号: LAMPer 技術棧;

QQ群: 670494430 ,來和藍默和他的小夥伴們一起扯犢子吧!!!