系统yum安装文件的时候,突然掉电重启。再次使用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 the m. 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-complete-transaction或者执行yum-complete-transaction --cleanup-only命令
需要安装软件,才行运行
yum -y install yum-utils
清理yum未完成事务
[root@tz-yycs-db01 log]# yum-complete-transaction --cleanup-only Loaded plugins: product-id Cleaning up unfinished transaction journals Cleaning up 2020-05-27.10:12.05