There are unfinished transactions remaining解决办法

在Linux系统中使用yum在终止过一次后会提示There are unfinished transactions remaining问题,虽然不影响使用的问题,可以通过命令消除问题提示。

今天在使用linux系统yum安装软件时因为忘记做环境配置,便终止了安装命令,做完设置再回来执行yum install 时便提示There are unfinished transactions remaining. You might consider running yum-complete-transaction, or “yum-complete-transaction --cleanup-only” ,有未完成的yum事件,建议使用yum-complete-transaction --cleanup-only命令清除。
在这里插入图片描述
像我有强迫症的人来说,这个提示足矣让我难受一整天。根据提示直接执行yum-complete-transaction --cleanup-only命令,会提示没有这个命令。需要安装此命令。

# 安装 yum-complete-transaction(这是一个能发现未完成或被中断的yum事务的程序)
yum -y install yum-utils
# 清除yum缓存
yum clean all
# 再一次执行清除命令
yum-complete-transaction --cleanup-only

再执行yum install 命令时便没有此提示了

[root@node1 ~]# sudo yum update -y && sudo yum clean all 已加载插件:fastestmirror Loading mirror speeds from cached hostfile 正在解决依赖关系 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). --> 正在检查事务 ---> 软件包 mysql-community-client.x86_64.0.8.0.18-1.el7 将被 升级 ---> 软件包 mysql-community-client.x86_64.0.8.0.41-1.el7 将被 更新 --> 正在处理依赖关系 mysql-community-client-plugins = 8.0.41-1.el7,它被软件包 mysql-community-client-8.0.41-1.el7.x86_64 需要 ---> 软件包 mysql-community-libs.x86_64.0.8.0.18-1.el7 将被 升级 ---> 软件包 mysql-community-libs.x86_64.0.8.0.41-1.el7 将被 更新 ---> 软件包 mysql80-community-release.noarch.0.el7-5 将被 升级 ---> 软件包 mysql80-community-release.noarch.0.el7-11 将被 更新 --> 正在检查事务 ---> 软件包 mysql-community-client-plugins.x86_64.0.8.0.41-1.el7 将被 安装 --> 解决依赖关系完成 依赖关系解决 ===================================================================================================== Package 架构 版本 源 大小 ===================================================================================================== 正在更新: mysql-community-client x86_64 8.0.41-1.el7 mysql80-community 16 M mysql-community-libs x86_64 8.0.41-1.el7 mysql80-community 1.5 M mysql80-community-release noarch el7-11 mysql80-community 14 k 为依赖而安装: mysql-community-client-plugins x86_64 8.0.41-1.el7 mysql80-community 3.5 M 事务概要 ===================================================================================================== 安装 ( 1 依赖软件包) 升级 3 软件包 总计:21 M Downloading packages: 警告:/var/cache/yum/x86_64/7/mysql80-community/packages/mysql80-community-release-el7-11.noarch.rpm: 头V4 RSA
最新发布
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值