yum安装报错“Error: xz compression not available”

在测试服务器进行docker学习,有些centos7软件安装上和自己的服务器不兼容所以导致yun下载软件时报错:Error: xz compression not available

对于报错解决办法:

  1. rm -fr /var/cache/yum/x86_64/6/epel/
  2. rm -rf /etc/yum.repos.d/epel*

重新安装epel源和base源

wget -O/etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repohttp://mirrors.aliyun.com/repo/epel-7.repo
yum repolist
时间: 2024-10-12 00:45:19

yum安装报错“Error: xz compression not available”的相关文章

yum安装报错error: unpacking of archive failed on file /usr/bin/xxxx: cpio: open Failed

Bash漏洞爆出来了,赶紧更新一下补丁,#yum -y update bash 报错了 error: unpacking of archive failed on file /usr/bin/bashbug-64;54254708: cpio: open 参考了网上资料,原来是以前加固时给/usr/bin加了i权限 # lsattr /usr | grep bin ----i-----I-- /usr/bin # chattr -i /usr/bin 然后yum安装就OK了 参考资料:http:

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory

Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API. 本文为大家讲解的是Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法,感兴趣的同学参考下. 错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or

cocoapods 安装报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

cocoapods 安装报错 ERROR:  While executing gem ... (Errno::EPERM)     Operation not permitted - /usr/bin/xcodeproj 执行下面语句安装即可: sudo gem install -n /usr/local/bin cocoapods

yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between

yum安装报错有冲突file /usr/lib64/php/modules/fileinfo.so conflicts between attempted installs of php-pecl-fileinfo-1.0.4-2.el6.rf.x86 64 and php-common-5.3.3-46.el6 6.x86 64 遇到这个情况的时候  是库冲突了 需要修改文件        vim /etc/yum.repos.d/rpmforge.repo 将里面的enable=1    改

glusterfs本地yum源安装报错Error: Package:

报错如下 --> Finished Dependency Resolution Error: Package: glusterfs-server-3.4.7-1.el6.x86_64 (glusterfs) Requires: glusterfs-cli = 3.4.7-1.el6 Available: glusterfs-cli-3.4.7-1.el6.x86_64 (glusterfs) glusterfs-cli = 3.4.7-1.el6 Installing: glusterfs-cl

解决 yum安装时报错 Error: Protected multilib versions: 报错

系统中缺少一个lib库 libz.so.1文件,使用yum安装会自动找到相关的rpm包,如下命令 # yum -y install libz.so.1 Resolving Dependencies --> Running transaction check ---> Package zlib.i686 0:1.2.3-29.el6 will be installed --> Finished Dependency Resolution Error: Protected multilib

yum安装报错

报错如下: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/removing mirrorlist with no valid mirrors: /var/cache/yum/extras/mirrorlist.txtError: Cannot find a valid baseurl for repo: extras 使用lsb_release -a查看 解决方法:是r

故障小记录:yum 安装报错File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:

发生原因: 由于yum是基于python的,之前安装我python3,当我修改了python命令的指向到python3之后就会发生这样的问题. 解决办法: 由于我当初想到可能以后还需要python2,所以还保留着python2的命令指向 所以只需要 vim /usr/bin/yum 然后在头部改一下编译方式就好[是改成你的python2的命令,有些人的命令是python2.7之类的] 由#!  /usr/bin/python 改为#! /usr/bin/python2 另外还需要改一个地方,否则

python3 pip 安装Scrapy在win10 安装报错error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

问题描述 当前环境win10,python_3.6.1,64位. 在windows下,在dos中运行pip install Scrapy报错: building 'twisted.test.raiser' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/vis