fedora 20 报错: Loaded plugins: langpacks, refresh-packagekit Error: Cannot retrieve metalink for...
作为fedora菜鸡新手的我,被这个问题困扰了好久好久好久好久。。。。。。。今天觉得一定要记录一下。
刚装的 fedora 20 的 linux 系统。ISO镜像网址为:链接1,但是 yum 一直不好使,help yum 可以正常显示,ping 百度也可以ping通,但是就是不能用 yum 线上安装包。
问题·:
sudo yum install '*stdc*'
执行上述命令,报错,郁闷,刚装好的系统啊,错误信息如下:
Loaded plugins: langpacks, refresh-packagekit
Error: Cannot retrieve metalink for repository: fedora/20/x86_64. Please verify its path and try again
当然,如果你的是32位的fedora系统,那么错误信息就是
Loaded plugins: langpacks, refresh-packagekit
Error: Cannot retrieve metalink for repository: fedora/20/i386. Please verify its path and try again
换几条命令试试:
sudo yum install python
sudo yum makecache
试了好多与yum有关的命令都显示一样的报错信息,汗。。。。
处理方法:
删除有关https的更新
# vi /etc/yum.repos.d/fedora.repo //把所有https 换成 http(在“metalink”后面进行修改,一共需要改三处) # vi /etc/yum.repos.d/fedora-updates.repo //把所有https 换成 http(一共需要改三处)
(我的是fedora 20 ,打开文件以后是在 “metalink” 处修改。有的是在“mirrorlist”后面进行修改)
安装新凭证
# yum update ca-certificates //or # yum reinstall ca-certificates
改回原本的https
# vi /etc/yum.repos.d/fedora.repo //将刚刚改的http改回https,在“metalink” 后面 # vi /etc/yum.repos.d/fedora-updates.repo //将刚刚改的http改回https,在“metalink” 后面
此时,再执行,发现就没有问题了,可以正常的用yum进行安装
结论:
好像是需要认证,我之前是完全不知道。我曾经试了一下fedora 29和fedora 30,都不需要上述步骤,直接sudo yum install xxxxx
就可以正常安装,但是这个版本却一直需要认证以后才可以使用。按照以上步骤,就可以完成更新认证,这样刚安装的fedora 20系统就可以用yum来进行后续的学习了
重要参考网址:重要的核心参考网址
另附:
如果出现错误
xxxx is not in the sudoers file. This incident will be reported.
(xxx是你linux的名字),如果出现上述问题,请在以下网址中查找:链接3
fedora 20 报错: Loaded plugins: langpacks, refresh-packagekit Error: Cannot retrieve metalink for...相关推荐
- 解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security
解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security 参考文章: (1)解决yum 不能更新问 ...
- linux报错Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile解决方法
linux报错Loading mirror speeds from cached hostfile解决方法 我这里使用的是centOS7的版本,在使用yum安装包时出现了如下问题: Loaded pl ...
- zabbix集成onealert验证报错:create media type failed! error message
zabbix集成onealert验证报错:create media type failed! error message 一.报错详细信息 [root@host-10-10-6-20 bin]# ba ...
- 安装php时,make步骤报错make: *** [ext/gd/gd.lo] Error 1
安装PHP时,make步骤报错make: *** [ext/gd/gd.lo] Error 1 /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/ ...
- vue项目报错,解决Module build failed: Error: Cannot find module ‘node-sass‘ 问题
vue项目报错,解决Module build failed: Error: Cannot find module 'node-sass' 问题 参考文章: (1)vue项目报错,解决Module bu ...
- Qt5.x解决报错main.cpp:1:10: fatal error: QApplication: No such file or directory问题
Qt5.x解决报错main.cpp:1:10: fatal error: QApplication: No such file or directory问题 问题描述 定位问题 解决方法 The en ...
- 安装pytorch一直报错解决方法!!! ERROR: Exception: Traceback (most recent call last): File “D:\Anacoda\lib\s....
之前安装过pytorch,但是显示cuda不可用,一气之下卸载了pytorch,结果就是一直报错. 显示的错误: ERROR: Exception: Traceback (most recent ca ...
- sqlserver 2017 还原遇到报错The operating system returned the error ‘21(设备未就绪。)‘
环境:windows 2016 + sqlserver 2017 备份时正常,还原时一直卡在下面的界面不动 查看日志发现两个报错 The operating system returned the e ...
- Qt报错:cannot find -lws_32 collect2: error: ld returned 1 exit status
Qt报错:cannot find -lws_32 collect2: error: ld returned 1 exit status cannot find -lws_32 报错图所示 尝试奇奇怪怪 ...
最新文章
- 新版VIEW CLIENT FOR IPADANDRIOD发布了!
- Ubuntu系统环境变量配置文件(转)
- openssl 使用命令
- 19、HTML文件上传域
- linux重置网络协议,Linux 内核网络协议栈 ------ tcp_ack 函数处理接收到的ACK包之后 ....
- python遇到错误跳过_python except异常处理之后不退出,解决异常继续执行的实现
- Property or method xxxx is not defined on the instance but referenced during render.
- C++ primer 第7章 类
- redis 中一个字段 修改map_Redis 几种数据类型及应用场景
- java1.8win7_JDK 1.8 安装配置教程(win7 64bit )
- 螺旋矩阵(递归问题)
- LayaAir UI 组件 # RadioGroup 单选框按钮组
- 大话设计模式笔记(十二)の抽象工厂模式
- VUE ---- Windows7环境下安装
- 一次HBase问题的解决过程(Status: INCONSISTENT)
- SQL Server不允许保存更改【解决】
- WBS——工作分解结构
- matlab里面的xlsread函数坏,MATLAB的xlsread坏了
- 脚本小子_Lua函数
- 关于金币鉴别的基础知识和简易操作
热门文章
- 在Anaconda中安装TensorFlow1.14.0与TensorFlow2.0.0
- 安卓案例:利用SQLiteDatabase操作数据库与表
- SciTE文本编辑器初体验
- 【codevs2287】火车站,第一个A掉的钻石题(迟来的解题报告)
- C ++ 类 | 类的例子,构造函数(Constructors),析构函数(Destructors)_2
- TTU智能配电终端_智能配电终端规模化建设及应用
- 2017.9.12 人员雇佣 失败总结
- mac环境下配置gradle\maven
- 浅谈K短路算法(KSP)之二(YEN .J算法求解)
- python读取枚举_在python中枚举(enumerate in python)