1. 程式人生 > >Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/g/gcc-5/g++-5_5.4.0-6ubuntu1~16

Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/g/gcc-5/g++-5_5.4.0-6ubuntu1~16

今天在ubutun中在安裝redis過程中,安裝gcc時遇到了Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/g/gcc-5/g++-5_5.4.0-6ubuntu1~16。

後在/etc/resolvconf/resolv.conf.d/base中新增nameserver  202.96.134.133     nameserver  202.96.128.68(電信)

執行sudo apt-get install gcc

成功安裝