Ubuntu18.04 change Ali mirror source

BluishZone-BluishZone

Hello there! Welcome page of "Lammo Space". If you want to learn to exchange PHP and Linux system operation and maintenance, you can read this article carefully, and then follow the public account at the bottom of the article for more knowledge.

First check the host system version number

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

Backup system's own mirror source

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

Edit configuration file

Start of line:d+Gdelete all
iinsert shift+insertPaste the following content:

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

Feel the speedy internet speed~

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

Public account: LAMPer technology stack;
QQ group: 670494430, come and fight with Lan Mo and his friends! ! !

Guess you like

Origin blog.csdn.net/geeksoarsky/article/details/102557984