最近在使用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
Copyright © 2013-2021 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号