-
Notifications
You must be signed in to change notification settings - Fork 564
—Q: 我使用安装的那段脚本,发现解析不了ustc.edu.cn怎么办?
ivanhao edited this page Sep 20, 2019
·
1 revision
ping www.baidu.com
如果解析不了,基本是dns的问题。解决办法:
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
然后再试。
export LC_ALL=en_US.UTF-8
echo "deb http://ftp.debian.org/debian stretch main contrib
deb http://ftp.debian.org/debian stretch-updates main contrib
# security updates
deb http://security.debian.org stretch/updates main contrib" > /etc/apt/sources.list
apt update && apt -y install git && git clone https://github.com/ivanhao/pvetools.git \
&& cd pvetools && cp ./pvetools.sh /usr/bin/pvetools && pvetools