【问题标题】:centos7 yum-complete-transaction errorscentos7 yum-complete-transaction 错误
【发布时间】:2019-02-26 17:34:32
【问题描述】:

警告“还有未完成的事务。您可以考虑先运行 yum-complete-transaction 来完成它们。 yum-complete-transaction 程序在 yum-utils 包中。”

我正在运行 yum-complete-transaction,它开始正常:

基础 | 3.6 KB 00:00
epel/x86_64/metalink | 29 KB 00:00
珠光 | 4.7 KB 00:00
附加功能 | 3.4 KB 00:00
nginx | 2.9 KB 00:00
nux-dextop | 2.9 KB 00:00
雷米 | 3.0 KB 00:00
雷米调试信息 | 3.0 KB 00:00
remi-php55-debuginfo | 3.0 KB 00:00
remi-php56-debuginfo | 3.0 KB 00:00
雷米-php72 | 3.0 KB 00:00
雷米安全 | 3.0 KB 00:00
复试| 3.0 KB 00:00
remi-test-debuginfo | 3.0 KB 00:00
更新 | 3.4 KB 00:00
(1/17): epel/x86_64/group_gz | 88 KB 00:00
(2/17): epel/x86_64/updateinfo | 956 KB 00:00
(3/17):base/7/x86_64/group_gz | 166 KB 00:01
(4/17):base/7/x86_64/primary_db | 6.0 MB 00:01

...

有 1 笔未完成的交易需要完成。完成最近的一个

剩下的事务还有 593 个元素要运行

正在删除...

正在删除...

...

--> 处理依赖...

...

--> 完成依赖解析

最后还是报错:

---> 包gnupg1.x86_64 0:1.4.20-1.el7.remi 将被删除

--> 处理依赖:gnupg

--> 完成依赖解析

Error: Package: php-pear-crypt-gpg-1.6.3-1.el7.remi.noarch (remi)
           Requires: gnupg < 2
           Removing: gnupg1-1.4.20-1.el7.remi.x86_64 (@remi)
               gnupg = 1.4.20-1.el7.remi
           Removing: gnupg2-2.0.22-4.el7.x86_64 (@anaconda)
               gnupg = 2.0.22-4.el7
           Updated By: gnupg2-2.0.22-5.el7_5.x86_64 (base)
               gnupg = 2.0.22-5.el7_5

我删除了名称中包含“php”的所有内容,但错误并没有消失。 然后我试图找到这个“php-pear-crypt-gpg”:

find / -name php-pear-crypt*
yum list installed | grep php
rpm -qa | grep php-*

但没有结果。怎么会这样?如何找到这个包?这个错误来自哪里?

【问题讨论】:

  • 听起来像梨包,所以试试pear list-packages

标签: php centos centos7 yum


【解决方案1】:

我误解了错误信息。

Error: Package: php-pear-crypt-gpg-1.6.3-1.el7.remi.noarch (remi)
           Requires: gnupg < 2

我以为我需要为 php-pear-crypt-gpg 安装 gnupg,但不,反之亦然,我需要为 gnupg1 安装 php-pear-crypt-gpg

对不起,我的 linux 新手体验。解决了。​​

【讨论】:

    【解决方案2】:

    对不起,我无法重现:

    # yum install --enablerepo=remi php-pear-crypt-gpg
    ...
    Dependencies Resolved
    
    ====================================================================================================================================================================================
     Package                                              Arch                           Version                                          Repository                               Size
    ====================================================================================================================================================================================
    Installing:
     php-pear-crypt-gpg                                   noarch                         1.6.3-1.el7.remi                                 remi                                    317 k
    Installing for dependencies:
     gnupg1                                               x86_64                         1.4.20-1.el7.remi                                remi                                    1.3 M
     php-mbstring                                         x86_64                         7.2.16~RC1-2.el7.remi                            remi-php72-test                         623 k
     php-pear-Console-CommandLine                         noarch                         1.2.2-1.el7.remi                                 remi                                     55 k
    
    Transaction Summary
    ====================================================================================================================================================================================
    Install  1 Package (+3 Dependent packages)
    
    Total download size: 2.3 M
    Installed size: 9.8 M
    Is this ok [y/d/N]: 
    

    剩下的事务还有 593 个元素要运行

    我看起来您的 RPM/YUM 数据库处于非常糟糕的状态, 你必须完成待处理的交易,并修复它。

    【讨论】:

      猜你喜欢
      • 2018-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-03
      • 1970-01-01
      • 1970-01-01
      • 2011-07-03
      相关资源
      最近更新 更多