CenOS 7.x yum更新意外中断,提示yum-complete-transaction

最近在使用yum -y update更新CentOS 7.x的时候终端不小心意外退出了,再次使用yum命令更新或安装软件的提示提示:

There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.

The program yum-complete-transaction is found in the yum-utils package

解决办法如下

#安装 yum-complete-transaction
yum install yum-utils
#运行 yum-complete-transaction
yum-complete-transaction –cleanup-only
#清除可能存在的重复包
package-cleanup --dupes
#清除可能存在的损坏包
package-cleanup --problems

参考:CentOS7更新过程意外终止造成提示:yum-complete-transaction的解决方法

标签: 无

发表评论: