今天在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。

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

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

成功安装

相关文章:

  • 2021-09-14
  • 2021-07-14
  • 2022-12-23
  • 2021-12-25
  • 2022-03-05
  • 2022-01-18
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2022-02-01
  • 2022-12-23
  • 2021-06-15
  • 2022-03-08
  • 2021-09-01
  • 2022-01-23
  • 2022-12-23
相关资源
相似解决方案