Temporary failure resolving 'mirrors.163.com'
It was found that a problem with the system default DNS: nameserver 192.168.30.1
carried out:
echo "nameserver 114.114.114.114" >/etc/resolv.conf && \
echo "nameserver 8.8.8.8" >>/etc/resolv.conf && \
echo "nameserver 192.168.30.1" >>/etc/resolv.conf
Update Source:
echo "deb http://mirrors.163.com/debian/ stretch main non-free contrib" >/etc/apt/sources.list && \
echo "deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib" >>/etc/apt/sources.list && \
echo "deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.163.com/debian/ stretch main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib" >>/etc/apt/sources.list && \
echo "deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib" >>/etc/apt/sources.list && \
echo "deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib" >>/etc/apt/sources.list
Debian9 stretch modify the source
to modify the configuration file /etc/apt/sources.list
Source 163 is modified to:
deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
修改成清华源:
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main non-free contrib
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main non-free contrib
修改成科大源:
deb http://mirrors.ustc.edu.cn/debian/ stretch main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ stretch-updates main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ stretch main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main non-free contrib
---------------------
Author: Krup
Source: CSDN
Original: https: //blog.csdn.net/krupzone/article/details/78957013
Disclaimer: This article as a blogger original article, reproduced, please attach Bowen link!
USTC mirror sites
deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
Ali cloud mirror station
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb http://mirrors.aliyun.com/debian-security stretch/updates main deb-src http://mirrors.aliyun.com/debian-security stretch/updates main deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
Huawei mirror sites
deb https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free deb https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free deb https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free
Lanzhou University mirror sites
deb http://mirror.lzu.edu.cn/debian stable main contrib non-free deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free deb http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free deb-src http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free deb http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free deb-src http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free
Shanghai Jiaotong mirror sites
deb https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free deb https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free deb https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free deb https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free deb-src https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free
Finally, attach the official list of mirror sites worldwide address https://www.debian.org/mirror/list
from: https://www.cnblogs.com/liuguanglin/p/9397428.html