当前位置: 技术问答>linux和unix
我在使用 rpm 安装mysql软件时出现错误,请帮忙分析一下原因,谢谢
来源: 互联网 发布时间:2016-10-06
本文导语: [root@localhost setup]# rpm -ivh MySQL-client-community-5.1.39-0.rhel5.i386.rpm Preparing... ########################################### [100%] 1:MySQL-client-community ########################################### [100%] error: unpacking ...
[root@localhost setup]# rpm -ivh MySQL-client-community-5.1.39-0.rhel5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-client-community ########################################### [100%]
error: unpacking of archive failed on file /usr/bin/mysqldump;4cb5503e: cpio: read
[root@localhost setup]# rpm -Uhvvv MySQL-client-community-5.1.39-0.rhel5.i386.rpm
D: ============== MySQL-client-community-5.1.39-0.rhel5.i386.rpm
D: Expected size: 7623599 = lead(96)+sigs(264)+pad(0)+data(7623239)
D: Actual size: 4026431
D: MySQL-client-community-5.1.39-0.rhel5.i386.rpm: Header SHA1 digest: OK (6877fe18c1f20b3dccfeecaa5fdd586804dbdf86)
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name rdonly mode=0x0
D: added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ MySQL-client-community-5.1.39-0.rhel5 i386/linux 0x1
D: opening db index /var/lib/rpm/Depends create mode=0x0
D: opening db index /var/lib/rpm/Basenames rdonly mode=0x0
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
D: read h# 37 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: /bin/sh YES (db files)
D: read h# 62 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: /usr/bin/perl YES (db files)
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.0) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.1) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.1.2) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.1.3) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.2) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.3) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.3.4) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.4) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libcrypt.so.1 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libm.so.6 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libm.so.6(GLIBC_2.0) YES (db provides)
D: read h# 39 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libncursesw.so.5 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libnsl.so.1 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.0) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.1) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.2) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.3.2) YES (db provides)
D: Requires: rpmlib(CompressedFileNames)
Preparing... ########################################### [100%]
1:MySQL-client-community ########################################### [100%]
error: unpacking of archive failed on file /usr/bin/mysqldump;4cb5503e: cpio: read
[root@localhost setup]# rpm -Uhvvv MySQL-client-community-5.1.39-0.rhel5.i386.rpm
D: ============== MySQL-client-community-5.1.39-0.rhel5.i386.rpm
D: Expected size: 7623599 = lead(96)+sigs(264)+pad(0)+data(7623239)
D: Actual size: 4026431
D: MySQL-client-community-5.1.39-0.rhel5.i386.rpm: Header SHA1 digest: OK (6877fe18c1f20b3dccfeecaa5fdd586804dbdf86)
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name rdonly mode=0x0
D: added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ MySQL-client-community-5.1.39-0.rhel5 i386/linux 0x1
D: opening db index /var/lib/rpm/Depends create mode=0x0
D: opening db index /var/lib/rpm/Basenames rdonly mode=0x0
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
D: read h# 37 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: /bin/sh YES (db files)
D: read h# 62 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: /usr/bin/perl YES (db files)
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.0) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.1) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.1.2) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.1.3) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.2) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.3) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.3.4) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.4) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libcrypt.so.1 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libm.so.6 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libm.so.6(GLIBC_2.0) YES (db provides)
D: read h# 39 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libncursesw.so.5 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libnsl.so.1 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0 YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.0) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.1) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.2) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.3.2) YES (db provides)
D: Requires: rpmlib(CompressedFileNames)