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

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

报错信息:

20201110190302596.png

解决办法:

[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 ~]# 
相关文章
|
6天前
|
缓存
yum 如何设置可以将安装的rpm包都缓存下来
【4月更文挑战第17天】yum 如何设置可以将安装的rpm包都缓存下来
18 0
|
3天前
|
弹性计算 关系型数据库 MySQL
安装LAMP 环境(yum 版本)
【4月更文挑战第29天】
5 0
|
3天前
|
弹性计算 关系型数据库 Shell
安装 LAMP 环境(yum 版本)
【4月更文挑战第29天】
16 5
|
8天前
|
Linux
centos 6.5安装yum
centos 6.5安装yum
39 0
|
10天前
|
存储 Linux 网络安全
centos7使用yum网络安装
这些是使用Yum进行网络安装的基本步骤。根据你的需求,你可以重复步骤3和4来安装其他软件包。请注意,执行Yum操作需要root或具有sudo权限的用户。
32 1
|
13天前
|
应用服务中间件 nginx
yum 安装报错 No package nginx available Error:Nothing to do
yum 安装报错 No package nginx available Error:Nothing to do
37 1
|
20天前
|
关系型数据库 MySQL Linux
服务器脚本推荐,yum更新阿里镜像源、安装Docker、使用Docker安装MySQL服务
服务器脚本推荐,yum更新阿里镜像源、安装Docker、使用Docker安装MySQL服务
69 1
|
22天前
|
Linux C语言
linux yum安装ffmpeg 图文详解
linux yum安装ffmpeg 图文详解
43 0
|
22天前
|
Linux
linux yum 安装rar和unrar
linux yum 安装rar和unrar
66 0
|
1月前
|
关系型数据库 MySQL PHP
LAMP YUM安装配置实战
LAMP YUM安装配置实战
32 3