zoukankan      html  css  js  c++  java
  • Yum 命令出现[Errno 256] No more mirrors to try错误的解决方式

      今天我在虚拟机上安装 NetCore 的 SDK 的时候,出现错误,执行命令:“yum install dotnet-sdk-3.1”,最后安装失败,很多安装包没有找到镜像。

    解决方式:

    1、输入命令:yum clean all
      #yum clean all
    2、输入命令:yum makecache
      #yum makecache

     1     [root@localhost ~]# yum clean all
     2     已加载插件:fastestmirror
     3     正在清理软件源: base extras updates
     4     Cleaning up everything
     5     [root@localhost ~]# yum makecache
     6     已加载插件:fastestmirror
     7     base | 3.6 kB 00:00
     8     extras | 3.4 kB 00:00
     9     updates | 3.4 kB 00:00
    10     (1/12): base/7/x86_64/group_gz | 166 kB 00:00
    11     (2/12): extras/7/x86_64/filelists_db | 603 kB 00:02
    12     (3/12): extras/7/x86_64/prestodelta | 100 kB 00:02
    13     (4/12): extras/7/x86_64/primary_db | 205 kB 00:00
    14     (5/12): extras/7/x86_64/other_db | 126 kB 00:00
    15     (6/12): base/7/x86_64/filelists_db | 6.9 MB 00:07
    16     (7/12): updates/7/x86_64/filelists_db | 3.4 MB 00:05
    17     (8/12): updates/7/x86_64/other_db | 578 kB 00:02
    18     (9/12): base/7/x86_64/primary_db | 5.9 MB 00:12
    19     (10/12): updates/7/x86_64/primary_db | 6.0 MB 00:05
    20     (11/12): base/7/x86_64/other_db | 2.5 MB 00:15
    21     updates/7/x86_64/prestodelta FAILED
    22     http://mirrors.njupt.edu.cn/centos/7.5.1804/updates/x86_64/repodata/8ee07a5e1fde5231fed8ce55547405923af529a0902e57aeee1676035ae7a367-prestodelta.xml.gz: [Errno 12] Timeout on http://10.10.254.10/cache/2/02/mirrors.njupt.edu.cn/a8bc5955244fcfe9599025498ceada44/8ee07a5e1fde5231fed8ce55547405923af529a0902e57aeee1676035ae7a367-prestodelta.xml.gz: (28, 'Connection timed out after 31022 milliseconds')
    23     正在尝试其它镜像。
    24     (12/12): updates/7/x86_64/prestodelta | 679 kB 00:00
    25     Determining fastest mirrors
    26     * base: mirrors.nwsuaf.edu.cn
    27     * extras: centos.ustc.edu.cn
    28     * updates: mirror.lzu.edu.cn
    29     元数据缓存已建立

    3、结束也可以再给yum来个升级【可选】

      #yum -y update

      虽然出现错误了,但是解决的很快,又有经验了,按着以上的3个步骤执行下来,然后重新安装就 ok 。

  • 相关阅读:
    隐含马尔科夫模型的训练
    隐马尔科夫模型
    联合概率、边缘概率、条件概率
    移除集合元素
    常用的概率分布:伯努利分布、二项式分布、多项式分布、先验概率,后验概率
    探索性数据分析EDA综述
    奇异值分解(SVD)原理及应用
    分类算法的评价
    【底层原理】数据库的最简单实现
    深度学习模型超参数搜索实用指南
  • 原文地址:https://www.cnblogs.com/PatrickLiu/p/13902004.html
Copyright © 2011-2022 走看看