yum 安装报错 There are unfinished transactions remaining.

yum 安装报错 There are unfinished transactions remaining.

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

1
2
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-utils, 获取yum-complete-transaction命令

1
yum install yum-utils

清除之前安装遗留的问题

1
yum-complete-transaction --cleanup-only

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!