CentOS 7 You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only"
已加载插件:fastestmirror, post-transaction-actions, priorities
Loading mirror speeds from cached hostfile
* base: mirrors.linode.com
* epel: reflector.westga.edu
* extras: mirrors.linode.com
* updates: mirrors.linode.com
正在解决依赖关系
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 install yum-utils -y
#运行
yum-complete-transaction --cleanup-only
➜ ~ yum-complete-transaction --cleanup-only
已加载插件:fastestmirror, post-transaction-actions, priorities
Loading mirror speeds from cached hostfile
* base: mirrors.linode.com
* epel: reflector.westga.edu
* extras: mirrors.linode.com
* updates: mirrors.linode.com
Cleaning up unfinished transaction journals
Cleaning up 2017-09-20.08:35.28
➜ ~