1. 程式人生 > >CentOS系統中 PCRE無法yum update的一些問題?

CentOS系統中 PCRE無法yum update的一些問題?

在CentOS中,執行 yum update 命令一直提示 libpcre太舊

--> Finished Dependency Resolution
Error: Package: exim-4.90.1-3.el6.x86_64 (@epel)
           Requires: libpcre.so.0()(64bit)
           Removing: pcre-7.8-7.el6.x86_64 (@anaconda-CentOS-201703281317.x86_64/6.9)
               libpcre.so.0()(64bit)
           Updated By: pcre-8.32
-17.el7.x86_64 (ol7_latest) Not found Error: Package: grep-2.20-6.el6.x86_64 (@anaconda-CentOS-201703281317.x86_64/6.9) Requires: libpcre.so.0()(64bit) Removing: pcre-7.8-7.el6.x86_64 (@anaconda-CentOS-201703281317.x86_64/6.9) libpcre.so.0()(64bit) Updated By: pcre-8.32
-17.el7.x86_64 (ol7_latest) Not found You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

執行yum remove pcre 又會提示 yum是依賴關係,受保護,不能remove

--> Finished Dependency Resolution
Error: Trying to remove "yum", which is protected

只好執行強制移除命令,忽略依賴關係

[root@ycga local]#  rpm -e --nodeps pcre

再次重新安裝

[root@ycga local]# yum install -y pcre pcre-devel

安裝成功

[[email protected] local]# yum install -y pcre pcre-devel
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package pcre.x86_64 0:8.32-17.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: pcre-8.32-17.el7.x86_64
---> Package pcre-devel.x86_64 0:7.8-7.el6 will be updated
---> Package pcre-devel.x86_64 0:8.32-17.el7 will be an update
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.209.el6_9.2 will be updated
--> Processing Dependency: glibc = 2.12-1.209.el6_9.2 for package: glibc-headers-2.12-1.209.el6_9.2.x86_64
--> Processing Dependency: glibc = 2.12-1.209.el6_9.2 for package: glibc-common-2.12-1.209.el6_9.2.x86_64
--> Processing Dependency: glibc = 2.12-1.209.el6_9.2 for package: glibc-devel-2.12-1.209.el6_9.2.x86_64
---> Package glibc.x86_64 0:2.17-222.el7 will be an update
--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.209.el6_9.2 will be updated
---> Package glibc-common.x86_64 0:2.17-222.el7 will be an update
--> Processing Dependency: /usr/bin/bash for package: glibc-common-2.17-222.el7.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.209.el6_9.2 will be updated
---> Package glibc-devel.x86_64 0:2.17-222.el7 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.209.el6_9.2 will be updated
---> Package glibc-headers.x86_64 0:2.17-222.el7 will be an update
--> Running transaction check
---> Package bash.x86_64 0:4.1.2-48.el6 will be updated
---> Package bash.x86_64 0:4.2.46-30.el7 will be an update
--> Processing Conflict: bash-4.2.46-30.el7.x86_64 conflicts filesystem < 3
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package filesystem.x86_64 0:2.4.30-3.el6 will be updated
---> Package filesystem.x86_64 0:3.2-25.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch         Version                Repository        Size
================================================================================
Installing:
 pcre                x86_64       8.32-17.el7            ol7_latest       421 k
Updating:
 filesystem          x86_64       3.2-25.el7             ol7_latest       1.0 M
 pcre-devel          x86_64       8.32-17.el7            ol7_latest       479 k
Updating for dependencies:
 bash                x86_64       4.2.46-30.el7          ol7_latest       1.0 M
 glibc               x86_64       2.17-222.el7           ol7_latest       3.6 M
 glibc-common        x86_64       2.17-222.el7           ol7_latest        11 M
 glibc-devel         x86_64       2.17-222.el7           ol7_latest       1.1 M
 glibc-headers       x86_64       2.17-222.el7           ol7_latest       678 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       7 Package(s)

Total download size: 20 M
Downloading Packages:
(1/8): bash-4.2.46-30.el7.x86_64.rpm                     | 1.0 MB     00:00     
(2/8): filesystem-3.2-25.el7.x86_64.rpm                  | 1.0 MB     00:00     
(3/8): glibc-2.17-222.el7.x86_64.rpm                     | 3.6 MB     00:01     
(4/8): glibc-common-2.17-222.el7.x86_64.rpm              |  11 MB     00:05     
(5/8): glibc-devel-2.17-222.el7.x86_64.rpm               | 1.1 MB     00:00     
(6/8): glibc-headers-2.17-222.el7.x86_64.rpm             | 678 kB     00:00     
(7/8): pcre-8.32-17.el7.x86_64.rpm                       | 421 kB     00:00     
(8/8): pcre-devel-8.32-17.el7.x86_64.rpm                 | 479 kB     00:00     
--------------------------------------------------------------------------------
Total                                           1.5 MB/s |  20 MB     00:13     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Importing GPG key 0xEC551F03:
 Userid: "Oracle OSS group (Open Source Software group) <[email protected]>"
 From  : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
exim-4.90.1-3.el6.x86_64 has missing requires of libpcre.so.0()(64bit)
grep-2.20-6.el6.x86_64 has missing requires of libpcre.so.0()(64bit)
less-436-13.el6.x86_64 has missing requires of libpcre.so.0()(64bit)
  Updating   : glibc-2.17-222.el7.x86_64                                   1/15 
  Updating   : bash-4.2.46-30.el7.x86_64                                   2/15 
  Updating   : glibc-common-2.17-222.el7.x86_64                            3/15 
  Updating   : glibc-headers-2.17-222.el7.x86_64                           4/15 
  Installing : pcre-8.32-17.el7.x86_64                                     5/15 
  Updating   : pcre-devel-8.32-17.el7.x86_64                               6/15 
  Updating   : glibc-devel-2.17-222.el7.x86_64                             7/15 
  Updating   : filesystem-3.2-25.el7.x86_64                                8/15 
Error unpacking rpm package filesystem-3.2-25.el7.x86_64
error: unpacking of archive failed on file /bin: cpio: rename
  Cleanup    : glibc-devel-2.12-1.209.el6_9.2.x86_64                       9/15 
  Cleanup    : glibc-headers-2.12-1.209.el6_9.2.x86_64                    10/15 
  Cleanup    : pcre-devel-7.8-7.el6.x86_64                                11/15 
  Cleanup    : bash-4.1.2-48.el6.x86_64                                   12/15 
warning: %postun(bash-4.1.2-48.el6.x86_64) scriptlet failed, exit status 127
Non-fatal POSTUN scriptlet failure in rpm package bash
  Cleanup    : glibc-common-2.12-1.209.el6_9.2.x86_64                     13/15 
  Cleanup    : glibc-2.12-1.209.el6_9.2.x86_64                            14/15 
  Verifying  : glibc-devel-2.17-222.el7.x86_64                             1/15 
  Verifying  : pcre-devel-8.32-17.el7.x86_64                               2/15 
  Verifying  : bash-4.2.46-30.el7.x86_64                                   3/15 
  Verifying  : glibc-headers-2.17-222.el7.x86_64                           4/15 
  Verifying  : pcre-8.32-17.el7.x86_64                                     5/15 
  Verifying  : glibc-common-2.17-222.el7.x86_64                            6/15 
  Verifying  : glibc-2.17-222.el7.x86_64                                   7/15 
  Verifying  : glibc-headers-2.12-1.209.el6_9.2.x86_64                     8/15 
  Verifying  : filesystem-3.2-25.el7.x86_64                                9/15 
  Verifying  : bash-4.1.2-48.el6.x86_64                                   10/15 
  Verifying  : glibc-common-2.12-1.209.el6_9.2.x86_64                     11/15 
filesystem-2.4.30-3.el6.x86_64 was supposed to be removed but is not!
  Verifying  : filesystem-2.4.30-3.el6.x86_64                             12/15 
  Verifying  : glibc-devel-2.12-1.209.el6_9.2.x86_64                      13/15 
  Verifying  : glibc-2.12-1.209.el6_9.2.x86_64                            14/15 
  Verifying  : pcre-devel-7.8-7.el6.x86_64                                15/15 

Installed:
  pcre.x86_64 0:8.32-17.el7                                                     

Updated:
  pcre-devel.x86_64 0:8.32-17.el7                                               

Dependency Updated:
  bash.x86_64 0:4.2.46-30.el7             glibc.x86_64 0:2.17-222.el7          
  glibc-common.x86_64 0:2.17-222.el7      glibc-devel.x86_64 0:2.17-222.el7    
  glibc-headers.x86_64 0:2.17-222.el7    

Failed:
  filesystem.x86_64 0:2.4.30-3.el6        filesystem.x86_64 0:3.2-25.el7       

Complete!