在Win10(2004) linux kali子系统,apt-get update出现Failed to fetch...错误
下面是详情
└─# sudo apt-get update && sudo apt-get upgrade Ign:1 https://mirrors.ustc.edu.cn/kali kali-rolling InRelease Ign:1 https://mirrors.ustc.edu.cn/kali kali-rolling InRelease Ign:1 https://mirrors.ustc.edu.cn/kali kali-rolling InRelease Err:1 https://mirrors.ustc.edu.cn/kali kali-rolling InRelease Temporary failure resolving 'mirrors.ustc.edu.cn' Reading package lists... Done W: Failed to fetch https://mirrors.ustc.edu.cn/kali/dists/kali-rolling/InRelease Temporary failure resolving 'mirrors.ustc.edu.cn' W: Some index files failed to download. They have been ignored, or old ones used instead. Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done
我在网上看到一些解决方案,一般都是更改源和代理这些我都做了,但是并不能解决问题,当然DNS和源我也都尝试了其他的,现在的如下
--- /etc/resolv.conf # This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /># [network] # generateResolvConf = false nameserver 114.114.114.114 nameserver 223.5.5.5 nameserver 223.6.6.6 --- /etc/apt/sources.list: deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
应该确定的是我的网络没有问题(我相信这是一种检验方式)
└─# ping 114.114.114.114 PING 114.114.114.114 (114.114.114.114) 56(84) bytes of data. 64 bytes from 114.114.114.114: icmp_seq=1 ttl=91 time=33.1 ms 64 bytes from 114.114.114.114: icmp_seq=2 ttl=80 time=32.4 ms ...... ^C --- 114.114.114.114 ping statistics --- 7 packets transmitted, 6 received, 14.2857% packet loss, time 6007ms rtt min/avg/max/mdev = 32.449/32.914/33.226/0.264 ms
- 我还看到一些提到代理的问题,我也根据提示输入了一些cmd命令,同样无果。虽然我不是很明白但是我感觉,这个问题更有可能和Windows有关,在此期间有一段时间按照上面的配置,没有出现问题(后来)我运行了代理软件,又不行了。
我这么做的目的是正常安装更新软件,比如安装桌面环境等
事实上会出现下面这样┌──(root
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论