快速解决:输入命令【service network restart】,重启服务网络
一、问题描述
刚刚安装好centos7虚拟机,然后安装docker,安装依赖时报错:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#7 - "Failed to connect to 2604:1380:1001:6c00::1: 网络不可达"
【详情截图】
二、解决
输入命令 【service network restart】
然后再重新安装依赖,问题解决,如下图