apt-get update报“Temporary failure resolving 'mirrors.aliyun.com'"

解决办法:

1.打开/etc/resolv.conf;

$sudo vim /etc/resolv.conf

2.修改nameserver后的ip地址;

加入:

nameserver 8.8.8.8
nameserver 8.8.4.4

3.重起网卡;

sudo /etc/init.d/network restart

posted @ 2021-01-04 15:39  镇魂帆-张  阅读(8429)  评论(1编辑  收藏  举报