https://blog.csdn.net/weixin_45621658/article/details/110734514

原因:centos6的默认源在2012年-12月左右被官方搞掉了
下列是错误详情
Bash
[root@c8-20 ~]# yum makecache
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
1
2
3
4
5
6
7
或者
Bash
[root@li496-237 ~]# yum -y install unzip zip
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
http://mirrors.linode.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn’t help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
第一种方法:一键修复(一条一条执行即可):
一般执行了前3条命令就好了
Bash
sed -i “s|enabled=1|enabled=0|g” /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
yum clean all
yum makecache
1
2
3
4
5
第二种方法:手动修复教程:
首先把fastestmirrors关了
Markup
#编辑
vi /etc/yum/pluginconf.d/fastestmirror.conf
1
#修改
enable=0
1
#或者执行以下命令
sed -i “s|enabled=1|enabled=0|g” /etc/yum/pluginconf.d/fastestmirror.conf
1
先把之前的repo挪到备份,然后下面两个二选一
Markup
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
1
替换为官方Vault源
Markup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Official.repo
1
替换为阿里云Vault镜像
Markup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo

Gedit报错

Gtk-WARNING **: cannot open display: 问题解决
这几天在ubutu上用vim一直出问题,网上找了很多解决方法都没有解决,然后朋友推荐用gedit文本编辑器,好吧,那就试试。
在root用户运行gedit时,提示出错

然后百度,说是因为:Xserver默认情况下不允许别的用户的图形程序的图形显示在当前屏幕上. 如果需要别的用户的图形显示在当前屏幕上, 则应以当前登陆的用户, 也就是切换身份前的用户执行如下命令。
当前登陆普通用户执行:xhost +

yum install 失败相关推荐

  1. linux yum install 失败报错:Transaction check error

    报错现象: Transaction check error: file /usr/share/dbus-1/services/org.freedesktop.PackageKit.service fr ...

  2. yum install nload失败,提示No package nload available.Error: Nothing to do

    阿里云服务器解决方法 嵌入式Linux开发 1 | CentOS7搭建C语言开发环境 https://www.jianshu.com/p/a35513e1f55d 解决方案步骤如下: 1.yum in ...

  3. linux没有mysql.server,[linux]centos7下解决yum install mysql-server没有可用包

    第一步:安装从网上下载文件的wget命令 [root@master ~]# yum -y install wget 第二步:下载mysql的repo源 [root@master ~]# wget ht ...

  4. RHEL 6.3使用CentOS yum源 (redhat yum安装失败)

    由于Redhat的yum在线更新是收费的,如果没有注册的话是不能使用的,即不能在线安装软件.所以yum install 命令每次都安装失败 下面介绍一种更改yum源的方式: 系统说明: 系统:Red ...

  5. K8s报错#!/bin/bash yum install -y yum-utils device-mapper-persistent-data lvm2 if [ $? = 0 ];then echo

    k8s在部署etcd单节点报错 failed to dial fab7ddbd0aa3e803 on stream Message (dial t-out) 这里需要安装docker环境,下面是doc ...

  6. 在CentOS 8 下yum install curl时报错

    yum install curl报错:为 repo 'appstream' 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirro ...

  7. VisualBox解决CentOS中yum安装失败的问题

    怎么说呢,花了一个下午+一个上午的时间,总算把这条命令运行成功了: yum install wget -y 打怪兽途中遇到了几个问题,总结一下: 1.ping 啥ip都是unkown,还有一种情况,就 ...

  8. 运行yum install -y mssql-server命令时报错:

    运行yum install -y mssql-server命令时报错:Loaded plugins: fastestmirror File contains no section headers. f ...

  9. Linux系统中安装RabbitMq消息中间件CentOS8 yum install安装方式

    1.创建保存rabbitmq的目录,并且进入目录 mkdir /usr/local/rabbitmq cd /usr/local/rabbitmq 2.先安装erlang,rabbitMq是用这个语言 ...

最新文章

  1. Linux shell命令总结
  2. XXL-REGISTRY v1.0.2 发布,分布式服务注册中心
  3. CocoaPods管理iOS的第三方类库
  4. python无参数装饰器_Python装饰器(不带参数)
  5. HashTable数据类型的增删改查操作0404
  6. ASP.NET MVC PartialView用法
  7. 通用职责分配软件原则之3-低耦合原则
  8. 【codevs1869】硬币购物,背包+神奇的容斥原理
  9. html 动物特效,分享9款用HTML5/CSS3制作的动物人物动画,
  10. 启动和停止一个服务,修改服务的启动类型 Start and Stop Service for windows
  11. [收藏]Linux 常用命令
  12. linux定时器王贤才,《linux内核设计与实现》 学习笔记(十七)---设备和模块
  13. fw313r手机登录_迅捷(FAST)fw313r路由器初始密码_登录密码是多少?-192路由网
  14. ps怎么将png做成gif_【AE教程】AE如何导出背景透明的图层到PS中做gif动图?
  15. TeamViewer远程控制软件的许可证有什么用处
  16. ABAP OLE下载到EXCEL
  17. FFmpeg 异常:height not divisible by 2
  18. stream filter 多条件筛选
  19. 使用Python实现基于API的网易有道翻译功能
  20. Python爬取热搜数据之炫酷可视化

热门文章

  1. C++ ASSERT() 断言机制
  2. python模块学习(1)
  3. XP设置文件夹默认打开方式改为“资源管理器”
  4. [MySQL FAQ]系列 -- 数据不算大,备份却非常慢
  5. python 传不定量参数_Python中的定量金融
  6. 怎么样实现对一个对象的深拷贝
  7. freecodecamp_如何对freeCodeCamp文章提供反馈
  8. 安卓流行布局开源库_如何使用流行度在开源库之间进行选择
  9. 测试无服务器应用程序的最佳方法
  10. centos7 nginx+php5.6+mysql安装与配置