Linux安装yum install gcc-c++出错:Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos...时间:2022-07-10 22:12:19错误如图: 解决办法: 1、修改配置文件 /etc/resolv.conf,该配置文件如下: 2、输入:gedit resolv.conf,修改配置文件内容如下: 3、然后重启: 4、重新进行安装: 5、成功页面: