yum安装报错 There are unfinished transactions remaining.

时间:2019-08-20 17:58:32  来源:igfitidea点击:

使用yum命令安装软件时,报错

There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction –cleanup-only" and "yum history redo last", first to finish them. If those don’t work you’ll have to try removing/installing packages by hand (maybe package-cleanup can help).
The program yum-complete-transaction is found in the yum-utils package

这肯定是因为之前执行yum命令时 ,按 Ctrl+C中断了正在安装软件的过程。

解决方法

安装yum-utils, 获取yum-complete-transaction命令

yum install yum-utils

清除之前安装遗留的问题

yum-complete-transaction --cleanup-only