1. Local source
1. First mount the image file to the mnt temporary mounting directory
[root@Server01 /]# mount /dev/sr0 /mnt/
2. Edit apt file
[root@Server01 /]# nano /etc/apt/sources.list
deb [trusted=yes] file:///mnt fou main
3. Update source
[root@Server01 /]# apt-get update
[root@Server01 /]# apt-get upgrade
4. Test
[root@Server01 /]# apt-get install bind9-y
#安装成功就是配置完成
2. Network source
1. Back up or clear the contents in /etc/apt/source.list and replace it with Alibaba
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