修复CentOs7.4更新时的依赖错误

今天更新系统的时候遇到了依赖的问题 从官网找到了解决方案

  • 更新的时候提示下列错误

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    --> Finished Dependency Resolution
    Error: Package: libgpod-0.8.3-14.el7.x86_64 (@epel)
    Requires: libplist.so.1()(64bit)
    Removing: libplist-1.10-4.el7.x86_64 (@base)
    libplist.so.1()(64bit)
    Updated By: libplist-1.12-3.el7.x86_64 (base)
    ~libplist.so.3()(64bit)
    Error: Package: libgpod-0.8.3-14.el7.x86_64 (@epel)
    Requires: libusbmuxd.so.2()(64bit)
    Removing: usbmuxd-1.0.8-11.el7.x86_64 (@base)
    libusbmuxd.so.2()(64bit)
    Obsoleted By: usbmuxd-1.1.0-1.el7.x86_64 (base)
    Not found
    Error: Package: libgpod-0.8.3-14.el7.x86_64 (@epel)
    Requires: libimobiledevice.so.4()(64bit)
    Removing: libimobiledevice-1.1.5-6.el7.x86_64 (@base)
    libimobiledevice.so.4()(64bit)
    Updated By: libimobiledevice-1.2.0-1.el7.x86_64 (base)
    ~libimobiledevice.so.6()(64bit)
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest
  • 降级有问题的依赖即可

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    [root@local ~]$ yum downgrade libgpod
    Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
    * base: mirrors.zju.edu.cn
    * elrepo: mirrors.neusoft.edu.cn
    * elrepo-kernel: mirrors.neusoft.edu.cn
    * extras: mirrors.zju.edu.cn
    * updates: mirrors.zju.edu.cn
    Resolving Dependencies
    --> Running transaction check
    ---> Package libgpod.x86_64 0:0.8.2-12.el7 will be a downgrade
    --> Processing Dependency: libplist.so.3()(64bit) for package: libgpod-0.8.2-12.el7.x86_64
    --> Processing Dependency: libimobiledevice.so.6()(64bit) for package: libgpod-0.8.2-12.el7.x86_64
    ---> Package libgpod.x86_64 0:0.8.3-14.el7 will be erased
    --> Running transaction check
    ---> Package libimobiledevice.x86_64 0:1.1.5-6.el7 will be updated
    --> Processing Dependency: libimobiledevice.so.4()(64bit) for package: upower-0.99.2-1.el7.x86_64
    ---> Package libimobiledevice.x86_64 0:1.2.0-1.el7 will be an update
    --> Processing Dependency: libusbmuxd.so.4()(64bit) for package: libimobiledevice-1.2.0-1.el7.x86_64
    ---> Package libplist.x86_64 0:1.10-4.el7 will be updated
    --> Processing Dependency: libplist.so.1()(64bit) for package: usbmuxd-1.0.8-11.el7.x86_64
    ---> Package libplist.x86_64 0:1.12-3.el7 will be an update
    --> Running transaction check
    ---> Package libusbmuxd.x86_64 0:1.0.10-5.el7 will be installed
    ---> Package upower.x86_64 0:0.99.2-1.el7 will be updated
    ---> Package upower.x86_64 0:0.99.4-2.el7 will be an update
    ---> Package usbmuxd.x86_64 0:1.0.8-11.el7 will be obsoleted
    ---> Package usbmuxd.x86_64 0:1.0.8-11.el7 will be updated
    ---> Package usbmuxd.x86_64 0:1.1.0-1.el7 will be obsoleting
    --> Finished Dependency Resolution

    Dependencies Resolved

    ======================================================================================================================================================================================
    Package Arch Version Repository Size
    ======================================================================================================================================================================================
    Installing:
    usbmuxd x86_64 1.1.0-1.el7 base 56 k
    replacing usbmuxd.x86_64 1.0.8-11.el7
    Downgrading:
    libgpod x86_64 0.8.2-12.el7 base 295 k
    Installing for dependencies:
    libusbmuxd x86_64 1.0.10-5.el7 base 29 k
    Updating for dependencies:
    libimobiledevice x86_64 1.2.0-1.el7 base 70 k
    libplist x86_64 1.12-3.el7 base 58 k
    upower x86_64 0.99.4-2.el7 base 156 k

    Transaction Summary
    ======================================================================================================================================================================================
    Install 1 Package (+1 Dependent package)
    Upgrade ( 3 Dependent packages)
    Downgrade 1 Package

    Total download size: 664 k
    Is this ok [y/d/N]: y
    Downloading packages:
    No Presto metadata available for base
    (1/6): libgpod-0.8.2-12.el7.x86_64.rpm | 295 kB 00:00:00
    (2/6): libimobiledevice-1.2.0-1.el7.x86_64.rpm | 70 kB 00:00:00
    (3/6): libplist-1.12-3.el7.x86_64.rpm | 58 kB 00:00:00
    (4/6): libusbmuxd-1.0.10-5.el7.x86_64.rpm | 29 kB 00:00:00
    (5/6): upower-0.99.4-2.el7.x86_64.rpm | 156 kB 00:00:00
    (6/6): usbmuxd-1.1.0-1.el7.x86_64.rpm | 56 kB 00:00:00
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total 490 kB/s | 664 kB 00:00:01
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Updating : libplist-1.12-3.el7.x86_64 1/11
    Installing : libusbmuxd-1.0.10-5.el7.x86_64 2/11
    Updating : libimobiledevice-1.2.0-1.el7.x86_64 3/11
    Updating : upower-0.99.4-2.el7.x86_64 4/11
    Installing : usbmuxd-1.1.0-1.el7.x86_64 5/11
    Installing : libgpod-0.8.2-12.el7.x86_64 6/11
    Cleanup : libgpod-0.8.3-14.el7.x86_64 7/11
    Cleanup : upower-0.99.2-1.el7.x86_64 8/11
    Cleanup : libimobiledevice-1.1.5-6.el7.x86_64 9/11
    Cleanup : usbmuxd-1.0.8-11.el7.x86_64 10/11
    Cleanup : libplist-1.10-4.el7.x86_64 11/11
    Verifying : libplist-1.12-3.el7.x86_64 1/11
    Verifying : libimobiledevice-1.2.0-1.el7.x86_64 2/11
    Verifying : libusbmuxd-1.0.10-5.el7.x86_64 3/11
    Verifying : upower-0.99.4-2.el7.x86_64 4/11
    Verifying : usbmuxd-1.1.0-1.el7.x86_64 5/11
    Verifying : libgpod-0.8.2-12.el7.x86_64 6/11
    Verifying : libgpod-0.8.3-14.el7.x86_64 7/11
    Verifying : upower-0.99.2-1.el7.x86_64 8/11
    Verifying : libimobiledevice-1.1.5-6.el7.x86_64 9/11
    Verifying : usbmuxd-1.0.8-11.el7.x86_64 10/11
    Verifying : usbmuxd-1.0.8-11.el7.x86_64 11/11
    Verifying : libplist-1.10-4.el7.x86_64 12/11

    Removed:
    libgpod.x86_64 0:0.8.3-14.el7

    Installed:
    libgpod.x86_64 0:0.8.2-12.el7 usbmuxd.x86_64 0:1.1.0-1.el7

    Dependency Installed:
    libusbmuxd.x86_64 0:1.0.10-5.el7

    Dependency Updated:
    libimobiledevice.x86_64 0:1.2.0-1.el7 libplist.x86_64 0:1.12-3.el7 upower.x86_64 0:0.99.4-2.el7

    Replaced:
    usbmuxd.x86_64 0:1.0.8-11.el7

    Complete!

参考资料