使用yum报错:You could try using --skip-broken to work around the problem
今天在centos7中使用 yum -y install couchdb命令安装couchdb时(安装参考《CentOS7安装CouchDB》),出现如下异常:
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-progressbar.noarch 0:2.3-2.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: python-progressbar-2.3-2.el6.noarch
--> Finished Dependency Resolution
Error: Package: python-progressbar-2.3-2.el6.noarch (epel)Requires: python(abi) = 2.6Installed: python-2.7.5-68.el7.x86_64 (@base)python(abi) = 2.7python(abi) = 2.7Available: python-2.7.5-76.el7.x86_64 (base)python(abi) = 2.7python(abi) = 2.7Available: python34-3.4.8-1.el6.i686 (epel)python(abi) = 3.4You could try using --skip-broken to work around the problemYou could try running: rpm -Va --nofiles --nodigest
因为在安装couchdb之前先执行了:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmrpm -ivh epel-release-6-8.noarch.rpm
以上命令安装epel-release,因此根据网上资料,开始以为是因为epel-release问题,所以分别使用下面三条命令
yum update -y epel-releaseyum remove epel-releaseyum -y install epel-release
后重试,还出现同样的错误。后来发现另一个解决办法(参考:使用yum 安装插件报错),如下:
yum clean allrpm --rebuilddbyum -y update
命令作用:
【yum clean all】yum 会把下载的软件包和header存储在cache中,而不自动删除。如果觉得占用磁盘空间,可以使用yum clean指令进行清除,更精确 的用法是yum clean headers清除header,yum clean packages清除下载的rpm包,yum clean all一全部清除。(参考:yum clean all的作用)【rpm --rebuilddb】rpm 有自己的数据库,出现此错误是因为数据库异常导致的,使用rpm --rebuilddb重构一下数据库即可,重构只会重新建立了rpm库表,不安装和删除任何的包
【yum -y update】升级所有包同时也升级软件和系统内核(参考:用实验来证实CentOS7中yum之update与upgrade之间的异同)
执行完成后再使用yum -y install couchdb命令成功安装couchdb。
END
使用yum报错:You could try using --skip-broken to work around the problem相关推荐
- yum报错: You could try using --skip-broken to work around the problem
cd /etc/yum.repos.d 删除错误文件 yum clean all yum update 强制卸载rpm –e 名称 –nodeps
- 解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security
解决yum 不能更新问题 :yum 报错Loaded plugins: fastestmirror, refresh-packagekit, security 参考文章: (1)解决yum 不能更新问 ...
- epel安装第三方扩展源后,运行yum报错的解决方案
epel安装第三方扩展源后,运行yum报错的解决方案 参考文章: (1)epel安装第三方扩展源后,运行yum报错的解决方案 (2)https://www.cnblogs.com/jingxiaoni ...
- 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 ...
- yum报错failure: repodata/repomd.xml from Centos: [Errno 256] No more mirrors to try. importing repomd.
yum报错failure: repodata/repomd.xml from Centos: [Errno 256] No more mirrors to try. importing repomd. ...
- Linux 安装yum报错Could not resolve host 转载
Linux 安装yum报错Could not resolve host 已加载插件:langpacks http://update.cs2c.com.cn:8080/NS/V7/V7Update4/o ...
- yum 报错: If above article doesn‘t help to resolve this issue please use https://bugs.centos.org/.
yum 报错 1. 报的错 2. 解决 3. /etc/yum.repos.d/epel.repo 文件 1. 报的错 If above article doesn't help to resolve ...
- 解决IntelliJ IDEA下Maven报错Unknown lifecycle phase “.test.skip=true“. You must specify a valid lifecycle
解决IntelliJ IDEA下Maven报错Unknown lifecycle phase ".test.skip=true". You must specify a valid ...
- linux centos7 yum 报错 Public key for *.rpm is not installed 解决方法
报错信息: [root@localhost backup]# yum -y install net-snmp Loaded plugins: fastestmirror Repository base ...
最新文章
- 波士顿动力最新仓储机器人,每小时“搬砖”800块
- 用JS实现一个定时间段的跳转
- 抓取百度页面html,百度会抓取页面代码中的注释内容吗
- 大连学业水平考试计算机,2016年大连市普通高中学生学业水平考试模拟题(一)
- HTTP缓存详解之etag
- 亚麻纤维截面形态_天然丝纤维蚕丝
- 正态分布解释“剩女”现象——只因爱才子
- Java GregorianCalendar getMaximum()方法与示例
- 外卖员不满上楼送餐要求向外卖吐口水4次,顾客不知情吃下整份外卖...
- server之后安装ssms失败 安装sql_SQL Server 2019怎么安装?SQL Server 2019详细安装使用教程及SSMS连接...
- 爆竹声中一岁除,春风送暖入屠苏
- linux的夹子的权限,linux系统下MegaCli使用方法
- tuxedo服务端访问oracle,tuxedo9.1与oracle10g互联
- 自编码器(AE)原理解析
- 越来越火的图数据库到底能做什么?
- 【蓝桥杯】真题训练 2014年C++A组 题4 史丰收速算
- 什么是devicenet跟以太网啥区别
- 阿里云深度学习平台试玩
- [Excel VBA]如何批量產出QRcode?
- 如何轻量化深度学习模型