Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache
1、事件描述:CentOS7下使用tree命令,发现该命令没有被安装,在安装的过程中发现yum报错
|
1
2
3
4
5
|
[root@openstack-01 ~]# tree -dbash: tree: 未找到命令...[root@openstack-01 ~]# yum -y install tree已加载插件:fastestmirror, langpacksRepodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast |
2、处理过程
a、直接执行yum makecache fast
[root@openstack-01 ~]# yum makecache fast
已加载插件:fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
备注:根据它的提示信息执行操作,发现提示信息依旧
b、清除yum缓存
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
[root@openstack-01 ~]# yum clean all已加载插件:fastestmirror, langpacksRepodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast正在清理软件源: base centos-ceph-hammer centos-openstack-mitaka centos-qemu-ev extras updatesCleaning up everythingCleaning up list of fastest mirrors[5]- 已杀死 yum update[root@openstack-01 ~]# yum makecache已加载插件:fastestmirror, langpacksCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误" 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. Disable the repository, 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> 4. 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=trueCannot find a valid baseurl for repo: base/7/x86_64 |
这时候我开始怀疑是不是我的yum所在的网络也存在问题
c、检测网络连通性状态,发现的确是网络存在问题
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
检查了网卡配置,发现DNS配置存在一些问题,手动修改并重置网卡信息,网络恢复正常[root@openstack-01 ~]# yum clean all已加载插件:fastestmirror, langpacks正在清理软件源: base centos-ceph-hammer centos-openstack-mitaka centos-qemu-ev extras updatesCleaning up everything[root@openstack-01 ~]# yum -y install tree已加载插件:fastestmirror, langpacksbase | 3.6 kB 00:00:00 centos-ceph-hammer | 2.9 kB 00:00:00 centos-openstack-mitaka | 2.9 kB 00:00:00 centos-qemu-ev | 2.9 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/7): centos-ceph-hammer/7/x86_64/primary_db | 30 kB 00:00:01 (2/7): extras/7/x86_64/primary_db | 132 kB 00:00:00 (3/7): updates/7/x86_64/primary_db | 4.9 MB 00:00:01 (4/7): centos-openstack-mitaka/x86_64/primary_db | 452 kB 00:00:04 (5/7): base/7/x86_64/primary_db | 5.3 MB 00:00:07 (6/7): base/7/x86_64/group_gz | 155 kB 00:00:15 (7/7): centos-qemu-ev/7/x86_64/primary_db | 23 kB 00:00:16 Determining fastest mirrors * base: mirrors.zju.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com正在解决依赖关系--> 正在检查事务---> 软件包 tree.x86_64.0.1.6.0-10.el7 将被 安装--> 解决依赖关系完成依赖关系解决==================================================================================================================================================== Package 架构 版本 源 大小====================================================================================================================================================正在安装: tree x86_64 1.6.0-10.el7 base 46 k事务概要====================================================================================================================================================安装 1 软件包总下载量:46 k安装大小:87 kDownloading packages:tree-1.6.0-10.el7.x86_64.rpm | 46 kB 00:00:00 Running transaction checkRunning transaction testTransaction test succeededRunning transaction 正在安装 : tree-1.6.0-10.el7.x86_64 1/1 验证中 : tree-1.6.0-10.el7.x86_64 1/1 已安装: tree.x86_64 0:1.6.0-10.el7 完毕![root@openstack-01 ~]# tree.├── anaconda-ks.cfg├── keystonerc_admin├── keystonerc_demo├── packstack-answers-20160505-132946.txt├── packstack-answers-20160505-134047.txt├── packstack-answers-20160505-152256.txt├── \345\205\254\345\205\261├── \346\250\241\346\235\277├── \350\247\206\351\242\221├── \345\233\276\347\211\207├── \346\226\207\346\241\243├── \344\270\213\350\275\275├── \351\237\263\344\271\220└── \346\241\214\351\235\242 ├── \346\234\252\345\221\275\345\220\215\346\226\207\344\273\266\345\244\271 └── \346\234\252\345\221\275\345\220\215\346\226\207\344\273\266\345\244\271\ 210 directories, 6 files |
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache的更多相关文章
- Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast的解决方法: 在命令行输入:yum clean al ...
- Centos7 下 yum -y install ntp 出现/var/run/yum.pid 已被锁定
[root@localhost ~ ]# yum -y install ntp已加载插件:fastestmirror, langpacksRepodata is over 2 weeks old. I ...
- 【在下版本,有何贵干?】Dockerfile中 RUN yum -y install vim失败Cannot prepare internal mirrorlist: No URLs in mirrorlist
隐秘的版本问题---- Dockerfile中 RUN yum -y install vim失败Cannot prepare internal mirrorlist: No URLs in mirro ...
- 卸载redhat6.5的yum,安装centos6的yum,配置第三方yum源
**redhat的yum在线更新是收费的,如果没有注册的话不能使用,如果要使用,需将redhat的yum卸载后,重启安装其他yum源,再配置其他源.** 本文包括配置本地源及第三方源.第三方源包括:网 ...
- linux里如何配置本地yum源和外网yum源
一:本地和外网源配置方法 二:外网YUM源的地址 一: ① 本地源配置方法:以光盘里rpm举例(这里使用虚拟机演示) 1.挂载一个iso的镜像 把光盘挂载到一个目录里,然后进入/etc/yum.rep ...
- 基于VSFTP的本地YUM源及光盘YUM源搭建
基于VSFTP的本地YUM源及光盘YUM源搭建 一.yum环境的本地源搭建(基于VSFTP): 1)安装vsftp; *********************************** ...
- Linux CentOS7 VMware 安装软件包的三种方法、rpm包介绍、rpm工具用法、yum工具用法、yum搭建本地仓库
一.安装软件包的三种方法 Linux下游三种安装方法,rpm工具.yum工具.源码包.rpm按装一个程序包时,有可能因为该程序包依赖另一个程序包而无法安装:yum工具,可以连同依赖的程序包一起安装. ...
- Linux YUM制作自己的yum repository
Linux YUM制作自己的yum repository 配置步骤: 1.通过网络发布自己的package目录 2.创建本地repository 3.配置自己的yum源 操作实现: 1 安装creat ...
- Linux下更换默认yum源为网易yum源的操作记录
废话不多说,下面记录了centos下更换系统默认yum源为网易yum源的操作过程:1)备份原有的默认yum源[root@bastion-IDC ~]# cp /etc/yum.repos.d/Cent ...
随机推荐
- vim文本编辑操作
文本选择操作 为了方便地选取文本块,Vim编辑器引入了可视模式(Visual Mode).要选取一段文本块,操作步骤如下: ▶ 将光标移动到要复制文本块的开始处.要注意的是 ...
- Ajax 报错 500 (Internal Server Error)
==========error======={"readyState":4,"responseText":"<html><head& ...
- SVN无法Cleanup
错误如下: 原因:svn提交遇到恶心的问题,可能是因为上次cleanup中断后,进入死循环了 解决方法:清空svn的队列 1.下载Sqlite3.exe 2.找到你项目的.svn文件,查看是否存在wc ...
- PKU 2506 Tiling(递推+高精度||string应用)
题目大意:原题链接有2×1和2×2两种规格的地板,现要拼2×n的形状,共有多少种情况,首先要做这道题目要先对递推有一定的了解.解题思路:1.假设我们已经铺好了2×(n-1)的情形,则要铺到2×n则只能 ...
- The 15th UESTC Programming Contest Preliminary B - B0n0 Path cdoj1559
地址:http://acm.uestc.edu.cn/#/problem/show/1559 题目: B0n0 Path Time Limit: 1500/500MS (Java/Others) ...
- 杭电1019Least Common Multiple
地址:http://acm.hdu.edu.cn/showproblem.php?pid=1019 题目: Problem Description The least common multiple ...
- 两句话,实现android 4.4以上实现沉浸式状态栏
效果图如下,就是状态栏和actionbar保持一致的颜色,非常漂亮 1:在Activity的OnCreate函数 if (Build.VERSION.SDK_INT >= Build.VERSI ...
- mongo启动
mongo启动 删除data目录里的mongo.lock bin 目录里执行 net start MongoDB
- Python爬虫学习笔记之Centos下安装配置Mongodb3.6
在Centos6.9上安装Mongodb时候,遇到"No package mongodb-org available"这个报错. 经过查询后,在Centos6.9上需要针对Mong ...
- linux中断的下半部机制
一.中断处理为什么要下半部?Linux在中断处理中间中断处理分了上半部和下半部,目的就是提高系统的响应能力和并发能力.通俗一点来讲:当一个中断产生,调用该中断对应的处理程序(上半部)然后告诉系统,对应 ...