Ubuntu18.04換阿里鏡像源

藍默空間-BluishZone

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

首先查看主機系統版本號

root@ubuntu-server:~# cat /etc/issue
Ubuntu 18.04.2 LTS \n \l

備份系統自帶的鏡像源

root@ubuntu-server:~# root@ubuntu-server:~# cp /etc/apt/sources.list /etc/apt/sources.list.bak

編輯配置文件

行首: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  ###############

感受暢快如飛的網速吧~

root@ubuntu-server:~# apt-get update
Fetched 15.5 MB in 8s (1,871 kB/s)                                                     
Reading package lists... Done

公衆號: LAMPer 技術棧;
QQ羣: 670494430 ,來和藍默和他的小夥伴們一起扯犢子吧!!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章