linux报错Loading mirror speeds from cached hostfile解决方法
我这里使用的是centOS7的版本,在使用yum安装包时出现了如下问题:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
There are no enabled repos.
Run “yum repolist all” to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable
To enable custom repositories:
yum-config-manager --enable
[root@localhost ~]# yum install tree -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
There are no enabled repos.
Run “yum repolist all” to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable
To enable custom repositories:
yum-config-manager --enable
解决方法:修改yum源,在安装更新rpm包时获得比较理想的速度。国内比较快的有163源、sohu源。这里以163源为例子。

然后输入以下代码:
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo CentOS-Base.repo
yum clean all
问题就基本解决了

linux报错Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile解决方法相关推荐

  1. yum出现Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile解决方法

    yum出现Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile解决方法 参考文章: (1 ...

  2. linux yum报错:Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile

    linux yum报错:Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile   (C ...

  3. Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Package 7:lvm2-2

    安装docker时候遇到的 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Pa ...

  4. Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Could not retrie

    问题:centos yum命令不能使用 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostf ...

  5. linux报错Loading mirror speeds from cached hostfile解决方法 【yum错误记录】

    linux报错Loading mirror speeds from cached hostfile解决方法 1.ping百度显示网络不可达 vim /etc/sysconfig/network-scr ...

  6. 【linux】已加载插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile

    已加载插件:fastestmirror, langpacks File contains no section headers. file: file:///etc/yum.repos.d/con 安 ...

  7. linux报错Loading mirror speeds from cached hostfile解决方法

    首先本人当时也是遇到这个问题,首先配置了虚拟机的 yum,移步这篇博客https://www.cnblogs.com/xuzhaoyang/p/11239096.html 然后在进行了如下操作 首先还 ...

  8. 解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security

    解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security 参考文章: (1)解决yum 不能更新问 ...

  9. Redis分布式缓存应用:主从复制master-slave,yum.安装报错Loading mirror speeds from cached hostfile 错误:M传递S成为M递归,薪火相传

    1.配置3台redis服务器 1.1配置C:\Windows\System32\drivers\etchosts文件,启用ip 1.2克隆主机-配置xsync 配置xsync[cevent@hadoo ...

最新文章

  1. AngularJS ui-router (嵌套路由)
  2. java xwork_xwork-core-2.3.4源码 - 源码下载|通讯/手机编程|J2ME|源代码 - 源码中国
  3. 工控机改装家庭智能中心--命令行配置无线wifi
  4. Android—Retrofit解析
  5. ARM Linux 3.x的设备树(Device Tree)
  6. 不想被时代抛弃,就别远离一线
  7. 在javascript中关于局部变量和全局变量简析
  8. PostgreSQL 10 自定义并行计算聚合函数的原理与实践
  9. API3 创始人更新 3 月开发进展:Airnode 的 pre-alpha 版已通过审计
  10. Java中this关键字的几种用法
  11. 17大主链均狂跌国内项目却看涨, 本周不可不知的7组榜单 | 数据周榜
  12. USB控制相关批处理
  13. UOJ#211. 【UER #6】逃跑 (Dynamic Programming)
  14. 企业如何选择固定资产管理系统?
  15. 利用NoteExpress统一Elsevier旗下期刊参考文献格式
  16. 台达PLC开发笔记(一):台达PLC连接介绍,分别使用485、网口与台达PLC建立连接
  17. SAS Marketing Automation 6.3 User’s Guide 学习笔记
  18. OSChina 周六乱弹 —— 泡面就要泡着吃……
  19. 高中计算机课程教程,高中信息技术课教学计划
  20. osm服务器 显示乱码,怎样获得osm上的行政区划shp文件

热门文章

  1. MySQL中什么是关系型数据库???
  2. 关于nodejs发送带参数的post请求调用人人网api
  3. 全国计算机等级考试二级C语言考试题
  4. 爬电距离、绝缘电阻、绝缘电压 之我见
  5. chatgpt 镜像版
  6. 迁移学习笔记4:ACML-Sinno Jialin Pan
  7. c语言fread()函数
  8. 谷歌浏览器显示oracle,css让table不显示边框的代码在火狐和谷歌浏览器中无效
  9. 模糊数学 2、基本的一些模糊矩阵,以及模糊矩阵的运算
  10. YOLOv3测试人物和舰船检测效果