yum下载很慢,卡在extras,然后出现Operation timed out 和 Trying other mirror.
2018-03-21 19:57
387 查看
记一次因为配置mongodb而导致yum用不了的惨案
1、yum install 报错2、报错原因:
2-1、之前为了可以用yum下载mongodb3.6,在/etc/yum.repos.d里创建了一个mongodb配置文件
2-2、就是这个 mongodb-org-3.6.repo卡住了我们的yum
2-3、因为yum在下载的过程中如果碰到文件不存在,会去更新下yum的源库,也就是会去上图中的 repo文件中更新库。就在这个时候,当yum更新到mongodb-org-3.6.repo 时,yum进入到了文件,拿到了 baseurl,然后去访问的时候出错了。为什么呢?从图中可以看到baseurl是属于国外的网站,我们国内不翻q是很难访问国外网站的,然后yum就一直在等待网站返回,结果就超时了。从而导致我们yum下载东西失败。
3、解决方法
3-1、将mongodb-org-3.6.repo改成mongodb-org-3.6.repo.bk
3-2、ok,就这么简单,可惜卡我这么久。唉。。。
3-3、啰嗦一句:文件目录为 /etc/yum.repos.d/
4、我这里只是因为这个mongodb-org-3.6.repo文件导致的,如果看客有过其他的repo文件,也可以参考修改。望成功
相关文章推荐
- Android SDK Manager下载包时出现:Download interrupted: Read timed out
- yum install * 出现[Errno -3] Error performing checksum Trying other mirror.
- Git克隆提交出现“ssh: connect to host github.com port 22: Operation timed out fatal”问题
- MAC - 使用 brew 安装东西时出现 curl: (7) Failed connect to downloads.sf.net:443; Operation timed out 的解决办法
- Github出现 ssh operation timed out
- yum安装软件包错误 HTTP Error 404 - Not Found Trying other mirror.
- yum安装软件包错误 HTTP Error 404 - Not Found Trying other mirror.
- 项目启动时出现"the operation timed out "
- System.Net.WebException: The operation has timed out
- iOS 真机调试 出现process launch failed: timed out waiting for app to launch 和 failed to get the task for 的
- cURL请求接口出现name lookup timed out
- yum安装过程中报错:repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other 解决办法
- TNS-12535: TNS:operation timed out TNS-00505: Operation timed out
- 打开oracle时报错:ORA-12535:TNS:operation timed out
- MobaXterm 登录出现 Network error :Connection timed out
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- Memcached Timed out(1000) waiting for operation
- python django安装报错The read operation timed out(pytz)
- 出现javax.servlet.ServletException: Receive timed out
- eclipse调试出现Failed to connect to remote VM. Connection timed out.