红联Linux门户
Linux帮助

安装rpm包时说解压归档失败怎么回事啊?

发布时间:2009-08-23 10:05:31来源:红联作者:cuiruikai
引用:
file:///C:/Users/cuiruikai/Desktop/PJ78SCY%7BQ@MFM%7B2IRSZ3Z%7BM.jpg


error:解压归档失败, 还有个 cpio: bad magic
文章评论

共有 9 条评论

  1. cuiruikai 于 2009-08-23 10:44:21发表:

    9# alick


    太感谢了 , 我对着字典看完了, 愁死了都 新手没办法 , 问题太多……

  2. alick 于 2009-08-23 10:38:42发表:

    RPM error: unpacking of archive failed: cpio: Bad magic
    thread54-1492346
    Forum Search FAQs Links Jobs Whitepapers Forum MVPs


    nychris (MIS) 6 Aug 08 14:37
    I have a weird issue on a RHEL3 Update 8 server. This happens with every RPM package. Any ideas?


    CODE
    bash-2.05b# rpm -ivh openssh-3.6.1p2-33.30.9.i386.rpm
    error: openssh-3.6.1p2-33.30.9.i386.rpm: V3 DSA signature: BAD, key ID db42a60e
    error: openssh-3.6.1p2-33.30.9.i386.rpm cannot be installed

    # added --nosignature here

    bash-2.05b# rpm -ivh openssh-3.6.1p2-33.30.9.i386.rpm --nosignature
    error: openssh-3.6.1p2-33.30.9.i386.rpm: MD5 digest: BAD Expected(c3bc64fe97c9822bba08a2cd50d6fe81) != (aa6fe539081a507b7285d8b5e5a1767d)
    error: openssh-3.6.1p2-33.30.9.i386.rpm cannot be installed

    # added --nodigest here


    bash-2.05b# rpm -ivh openssh-3.6.1p2-33.30.9.i386.rpm --nosignature --nodigest
    Preparing... ########################################### [100%]
    1:openssh warning: /etc/ssh/moduli created as /etc/ssh/moduli.rpmnew
    ########################################### [100%]
    error: unpacking of archive failed on file /usr/bin/ssh-keygen;4898cab4: cpio: MD5 sum mismatch


    # added --nomd5 here


    # rpm -ivh openssh-3.6.1p2-33.30.9.i386.rpm --nosignature --nomd5 --nodigest
    Preparing... ########################################### [100%]
    1:openssh warning: /etc/ssh/moduli created as /etc/ssh/moduli.rpmnew
    ########################################### [100%]
    error: unpacking of archive failed: cpio: Bad magic



    ZaSter (TechnicalUser) 6 Aug 08 17:06

    nychris,

    The "rpm" package itself may be out of date. So, look for an update to the "rpm" package itself, install that, and try again with the other rpms.




    nychris (MIS) 6 Aug 08 17:14
    The rpm package is current for U8, rpm-4.2.3-30. What I did notice is that glibc is however outdated for U8, glibc-2.3.2-95.45. You have to be careful with glibc though as it can hose a system if anything goes wrong. I'm going to look into possibly upgrading glibc to .47, or downgrading rpm to match the RH update version that glibc is running on. This will have to be done from rescue mode of course as RPM is currently broken on the system.


    Annihilannic (MIS) 6 Aug 08 20:35
    Are you certain the RPM files have not been corrupted by transferring in FTP ASCII mode or something? Have you tried running a manual md5sum against them and seeing if it agrees with what RPM is saying? And whether it agrees with the md5sums quoted on the source site/media (there are often md5sum lists included with the packages).
    Annihilannic.



    nychris (MIS) 7 Aug 08 1:55
    Annihilannic, the packages are fine. They are on an NFS share that is shared by 100's of servers. This is the only server having issues. Manually running md5sum gave a completely different checksum from either of the numbers.

    I've tried booting into rescue mode and get the same errors even when using the rpm binary from the CD with the --root=/mnt/sysimage parameter.

    I got desperate after seeing tons of odd behavior and decided to back up and try to kickstart new image. Even kickstart is failing with "cpio: Bad magic" errors which leads me to believe that there is a hardware or firmware issue. I had the datacenter team run hardware diagnostics which came up clean and now I'm going to ask them to upgrade the RAID firmware and BIOS.

    I can post exact errors and more detailed information of what I saw in the rescue environment tomorrow if anyone is interested.


    nychris (MIS) 7 Aug 08 1:58
    One thing I forgot to mention when I said "I've tried booting into rescue mode and get the same errors even when using the rpm binary from the CD with the --root=/mnt/sysimage parameter.". If I use the CD's rpm binary against RPMs on the CD itself, they are fine, but when I query those same packages after they are placed under /mnt/sysimage I get the errors above. As a test, I install the vsftpd rpm (just a random RPM package) from the CD using the --root option. It installed the files onto the disk, but hosed th RPM database. RPM commands return "Segmentation fault" now.

    Hopefully the datacenter team can update the firmware tonight and I'll see where I'm at tomorrow with this.



    Start A New Thread
    Posting in the Tek-Tips forums is a member-only feature.
    Click Here to join Tek-Tips and talk with other members!

    Promoting, selling, recruiting and student posting
    are not allowed in the forums.
    Posting Policies

    --------------------------------------------------------------------------------
    LINK TO THIS FORUM!
    (Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum)
    TITLE: Linux (server) Forum at Tek-Tips
    URL: http://www.tek-tips.com/threadminder.cfm?pid=54
    DESCRIPTION: Linux (server) technical support forum and mutual help system for computer professionals. Selling and recruiting forbidden.

  3. alick 于 2009-08-23 10:37:54发表:

    我google了一下,可能是rpm自己太旧了,该更新了

  4. cuiruikai 于 2009-08-23 10:28:22发表:

    6# alick


    图片里面也就是写着 解压归档失败,copi: bad magic 刚开始安装就出这错了!

  5. alick 于 2009-08-23 10:24:44发表:

    还是把图片放到附件里吧,这样别人看不到啊

  6. cuiruikai 于 2009-08-23 10:11:40发表:

  7. cuiruikai 于 2009-08-23 10:10:14发表:

    2# alick


    呵呵,不是,想传个图片解析一下来着失败了就穿了个路径

  8. alick 于 2009-08-23 10:08:29发表:

    这个文件路径怎么是win中的?