前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >[There are unfinished transactions remaining.]【使用本地YUM源安装服务报错解决方法】

[There are unfinished transactions remaining.]【使用本地YUM源安装服务报错解决方法】

作者头像
宝耶需努力
发布2022-12-13 13:43:11
3110
发布2022-12-13 13:43:11
举报
文章被收录于专栏:Cloud-DIY

报错信息:

在这里插入图片描述
在这里插入图片描述

解决办法:

代码语言:javascript
复制
[root@controller ~]# yum install -y yum-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
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.
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-50.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================
 Package                        Arch                        Version                               Repository                      Size
=======================================================================================================================================
Installing:
 yum-utils                      noarch                      1.1.31-50.el7                         openstack                      121 k

Transaction Summary
=======================================================================================================================================
Install  1 Package

Total download size: 121 k
Installed size: 337 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : yum-utils-1.1.31-50.el7.noarch                                                                                      1/1 
  Verifying  : yum-utils-1.1.31-50.el7.noarch                                                                                      1/1 

Installed:
  yum-utils.noarch 0:1.1.31-50.el7                                                                                                     

Complete!
[root@controller ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: centos openstack
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors

[root@controller ~]# yum-complete-transaction --cleanup-only
Loaded plugins: fastestmirror
Determining fastest mirrors
centos                                                                                                          | 3.6 kB  00:00:00     
openstack                                                                                                       | 2.9 kB  00:00:00     
(1/3): centos/group_gz                                                                                          | 166 kB  00:00:00     
(2/3): openstack/primary_db                                                                                     | 1.4 MB  00:00:00     
(3/3): centos/primary_db                                                                                        | 3.1 MB  00:00:00     
Cleaning up unfinished transaction journals
Cleaning up 2020-11-10.15:55.58
[root@controller ~]# 

参考链接

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-11-10,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档