解决yum下载时报错的简单方法
来源:互联网 发布:计算机java语言培训班 编辑:程序博客网 时间:2024/06/05 15:19
yum下载时报错,错误代码如下
错误代码:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
One of the configured repositories failed (未知),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/x86_64
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
One of the configured repositories failed (未知),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/x86_64
看了许多修改配置文件的方案,不一定能成功,操作过程还麻烦
本人亲测解决方案:
执行:yum -y install wget
问题解决!!!!!!!!!!
阅读全文
0 0
- 解决yum下载时报错的简单方法
- yum下载软件包时报错
- linux使用yum更新下载时报错PYCURL ERROR 56
- 使用yum时报错
- 解决下载文件名乱码问题的简单方法
- yum只下载不安装的方法
- yum下载rpm包的方法
- yum安装软件时报错
- yum安装软件时报错
- 解决centos4不能使用yum的方法
- progisp下载时报错Chip Enable Program Error 后续解决
- progisp下载时报错Chip Enable Program Error 后续解决
- 加速yum的一个简单方法
- 解决在CentOS 5.5 yum源下载慢的办法
- yum安装nginx后主机ipv6不支持时报错解决过程
- C++程序连接时报错的解决
- 解决编译thrift时报错的问题
- 解决eclipse Pydev中import时报错Unresolved import requests的方法
- ACM-10月26驲周四周中训练心得
- 51nod 1204 Parity[并查集]
- R
- 递归的概念,阶乘, 斐波那契列数:
- Linux网络编程——tcp并发服务器(多线程)
- 解决yum下载时报错的简单方法
- 有没有大神能够逐行解释一下代码?Delphi
- 网页使用ie或者360打开时按F12出现程序停止运行异常的原因以及解决方案
- maven的基本命令
- IO编程与线程概念
- 一分钟了解索引技巧
- express +jade +mongoDB+bootstrap搭建个人博客
- 浅谈oracle的游标
- 特殊权限、软链接&硬链接