虚拟机恢复快照后,使用yum安装软件,提示下面的信息,开始以为是yum源的问题或者DNS的问题,但是无果,最后再看一下服务器的时间,坑了,还原快照,时间变成以前的了。

[root@localhost yum.repos.d]# yum install lrzsz -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile 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: . Contact the upstream for the repository and get them to fix the problem. . 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). . Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ... . 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> . 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 retrieve metalink for repository: epel/x86_64. Please verify its path and try again
[root@localhost yum.repos.d]#

修改时间的界面

再yum

看结果就正常了。

最新文章

  1. Tomcat服务无法开启,点击start不一会就变成stopped
  2. 通过Maven将Web程序部署到远程Tomcat8服务器的一些注意事项
  3. prompt弹框返回输入的文本
  4. MySQL中的while、repeat、loop循环
  5. HTTP学习四:SPDY和HTTP/2.0
  6. c语言的一些库
  7. Delphi IP 控件源码
  8. AIX和Linux中wtmp的不同处理方式
  9. Linux下如何选择文件系统:EXT4、Btrfs 和 XFS
  10. nginx启动关闭
  11. Grub2配置详解(转)
  12. 关于hive ,eclipse老是提示加载不到驱动
  13. AF_INET 和PF_INET区别;AF_LOCAL PF_LOCAL 区别.
  14. QPainterPath 不规则提示框(二)
  15. ajax中的async属性值之同步和异步及同步和异步区别
  16. ActiveMQ集群
  17. js my_first
  18. Confluence 6 指派和撤销空间权限
  19. :复合模式:duck
  20. DS二叉树--层次遍历

热门文章

  1. 在c#中利用keep-alive处理socket网络异常断开的方法
  2. 我与OO (1)
  3. UVa442 Matrix Chain Multiplication(栈)
  4. MySql日期与时间函数
  5. Java中的char占用几个字节
  6. Python3 获取本机 IP
  7. 2018/12/22:centos中转换目录时/root的影响
  8. tensorflow 查看模型输入输出saved_model_cli show --dir ./xxxx --all
  9. centos7编译安装nginx
  10. php 计算坐标点方圆周围多少米的坐标算法