LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-19-2009, 08:14 AM   #1
mehdi1973
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Rep: Reputation: 0
error: unpacking of archive failed on file /usr/bin/perror;4a3b6207: cpio: read faile


Hi all,

While trying to install "MySQL-server-community-5.1.35-0.rhel5.i386.rpm" over my Linux RedHat server, i had the message

"error: unpacking of archive failed on file /usr/bin/perror;4a3b6207: cpio: read failed - Invalid argument"

I have also to say that i can't use "yum" or "yum Extender" over this machine ( cause have no licence!, that's at list what i was said for this server ) and here after is the command i used to do so and the output :

# rpm -Uhvvv MySQL-server-community-5.1.35-0.rhel5.i386.rpm | more
D: ============== MySQL-server-community-5.1.35-0.rhel5.i386.rpm
D: Expected size: 20023567 = lead(96)+sigs(264)+pad(0)+data(20023207)
D: Actual size: 6085648
D: MySQL-server-community-5.1.35-0.rhel5.i386.rpm: Header SHA1 digest: OK (17498c8aea9998c8243241422fcc23ac751ca3f5)
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/Providename rdonly mode=0x0
D: added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ MySQL-server-community-5.1.35-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# 93 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: /bin/sh YES (db files)
D: Requires: /bin/sh YES (cached)
D: Requires: /bin/sh YES (cached)
D: Requires: /bin/sh YES (cached)
D: read h# 34 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: /usr/bin/perl YES (db files)
D: read h# 10 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: chkconfig YES (db provides)
D: Requires: config(MySQL-server-community) = 5.1.35-0.rhel5 YES (added provide)
D: read h# 266 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: coreutils YES (db provides)
D: read h# 97 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: grep YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6 YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.0) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.1) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.1.2) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.1.3) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.2) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.3) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.3.4) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libc.so.6(GLIBC_2.4) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libcrypt.so.1 YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libcrypt.so.1(GLIBC_2.0) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libdl.so.2 YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libdl.so.2(GLIBC_2.0) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libdl.so.2(GLIBC_2.1) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libm.so.6 YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libm.so.6(GLIBC_2.0) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libm.so.6(GLIBC_2.1) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libnsl.so.1 YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0 YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.0) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.1) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.2) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.3.2) YES (db provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: libpthread.so.0(GLIBC_2.3.4) YES (db provides)
D: read h# 108 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: procps YES (db provides)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES (rpmlib provides)
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES (rpmlib provides)
D: read h# 7 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: rtld(GNU_HASH) YES (db provides)
D: read h# 262 Header V3 DSA signature: NOKEY, key ID 37017186
D: Requires: shadow-utils YES (db provides)
D: opening db index /var/lib/rpm/Conflictname rdonly mode=0x0
D: closed db index /var/lib/rpm/Depends
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth, breadth)
D: 0 0 0 0 1 0 +MySQL-server-community-5.1.35-0.rhel5.i386
D: installing binary packages
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages create mode=0x42
D: mounted filesystems:
D: i dev bsize bavail iavail mount point
D: 0 0x0000fd00 4096 14198651 16564619 /
D: 1 0x00000003 4096 0 -1 /proc
D: 2 0x00000000 4096 0 -1 /sys
D: 3 0x0000000b 4096 0 -1 /dev/pts
D: 4 0x00006801 1024 84194 26071 /boot
D: 5 0x00000013 4096 497192 220246 /dev/shm
D: 6 0x00000014 4096 0 -1 /proc/sys/fs/binfmt_misc
D: 7 0x00000015 4096 0 -1 /var/lib/nfs/rpc_pipefs
D: 8 0x00000012 32768 6240019 89564625 /oppio
D: 9 0x00000018 32768 352469 354848 /project1
D: sanity checking 1 elements
D: opening db index /var/lib/rpm/Name create mode=0x42
D: running pre-transaction scripts
D: computing 173 file fingerprints
D: computing file dispositions
D: opening db index /var/lib/rpm/Basenames create mode=0x42
Preparing... ##################################################
D: ========== +++ MySQL-server-community-5.1.35-0.rhel5 i386-linux 0x1
D: Expected size: 20023567 = lead(96)+sigs(264)+pad(0)+data(20023207)
D: Actual size: 6085648
D: MySQL-server-community-5.1.35-0.rhel5: Header SHA1 digest: OK (17498c8aea9998c8243241422fcc23ac751ca3f5)
D: install: MySQL-server-community-5.1.35-0.rhel5 has 173 files, test = 0
D: install: %pre(MySQL-server-community-5.1.35-0.rhel5.i386) asynchronous scriptlet start
D: install: %pre(MySQL-server-community-5.1.35-0.rhel5.i386) execv(/bin/sh) pid 2084
++ rpm -q --whatprovides mysql-server
+ installed='no package provides mysql-server'
+ '[' 1 -eq 0 -a -n 'no package provides mysql-server' ']'
+ '[' -x /etc/init.d/mysql ']'
+ /etc/init.d/mysql stop
+ echo 'Giving mysqld 5 seconds to exit nicely'
+ sleep 5
Giving mysqld 5 seconds to exit nicely
D: install: waitpid(2084) rc 2084 status 0 secs 5.138
D: ========== Directories not explicitly included in package:
D: 0 /etc/init.d/
D: 1 /etc/logrotate.d/
D: 2 /etc/
D: 3 /etc/
D: 4 /usr/bin/
D: 5 /usr/lib/mysql/
D: 6 /usr/sbin/
D: 7 /usr/share/doc/
D: 9 /usr/share/info/
D: 10 /usr/share/man/man1/
D: 11 /usr/share/man/man8/
D: 12 /usr/share/
D: ==========
D: fini 100755 1 ( 0, 0) 12012 /etc/init.d/mysql;4a3b6207
D: fini 100644 1 ( 0, 0) 789 /etc/logrotate.d/mysql;4a3b6207 altname
warning: /etc/logrotate.d/mysql created as /etc/logrotate.d/mysql.rpmnew
D: fini 100755 1 ( 0, 0) 7972 /usr/bin/innochecksum;4a3b6207
D: fini 100755 1 ( 0, 0) 1244032 /usr/bin/my_print_defaults;4a3b6207
D: fini 100755 1 ( 0, 0) 1496572 /usr/bin/myisam_ftdump;4a3b6207
D: fini 100755 1 ( 0, 0) 1618424 /usr/bin/myisamchk;4a3b6207
D: fini 100755 1 ( 0, 0) 1496440 /usr/bin/myisamlog;4a3b6207
D: fini 100755 1 ( 0, 0) 1529788 /usr/bin/myisampack;4a3b6207
D: fini 100755 1 ( 0, 0) 3674 /usr/bin/mysql_convert_table_format;4a3b6207
D: fini 100755 1 ( 0, 0) 483 /usr/bin/mysql_fix_extensions;4a3b6207
D: fini 100755 1 ( 0, 0) 5831 /usr/bin/mysql_fix_privilege_tables;4a3b6207
D: fini 100755 1 ( 0, 0) 14539 /usr/bin/mysql_install_db;4a3b6207
D: fini 100755 1 ( 0, 0) 6586 /usr/bin/mysql_secure_installation;4a3b6207
D: fini 100755 1 ( 0, 0) 16689 /usr/bin/mysql_setpermission;4a3b6207
D: fini 100755 1 ( 0, 0) 1219760 /usr/bin/mysql_tzinfo_to_sql;4a3b6207
D: fini 100755 1 ( 0, 0) 1301968 /usr/bin/mysql_upgrade;4a3b6207
D: fini 100755 1 ( 0, 0) 3818 /usr/bin/mysql_zap;4a3b6207
D: fini 100755 1 ( 0, 0) 12375 /usr/bin/mysqlbug;4a3b6207
D: fini 100755 1 ( 0, 0) 22519 /usr/bin/mysqld_multi;4a3b6207
D: fini 100755 1 ( 0, 0) 16536 /usr/bin/mysqld_safe;4a3b6207
D: fini 100755 1 ( 0, 0) 6370 /usr/bin/mysqldumpslow;4a3b6207
D: fini 100755 1 ( 0, 0) 31485 /usr/bin/mysqlhotcopy;4a3b6207
D: fini 100755 1 ( 0, 0) 2129024 /usr/bin/mysqltest;4a3b6207
D: undo 100755 1 ( 0, 0) 1237656 /usr/bin/perror;4a3b6207
GZDIO: 1528 reads, 12502831 total bytes in 0.212225 secs
MySQL-server-community ##################################################
error: unpacking of archive failed on file /usr/bin/perror;4a3b6207: cpio: read failed - Invalid argument
D: running post-transaction scripts
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: May free Score board((nil)
 
Old 06-19-2009, 08:42 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by mehdi1973 View Post
# rpm -Uhvvv MySQL-server-community-5.1.35-0.rhel5.i386.rpm | more
D: ============== MySQL-server-community-5.1.35-0.rhel5.i386.rpm
D: Expected size: 20023567 = lead(96)+sigs(264)+pad(0)+data(20023207)
D: Actual size: 6085648
If you would 'stat -c %s /path/to/your/MySQL-server-community-5.1.35-0.rhel5.i386.rpm' you would see the size is not 20023567 bytes. Expected and actual size must match. Download the RPM again.
 
Old 06-22-2009, 03:06 AM   #3
mehdi1973
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
If you would 'stat -c %s /path/to/your/MySQL-server-community-5.1.35-0.rhel5.i386.rpm' you would see the size is not 20023567 bytes. Expected and actual size must match. Download the RPM again.
---------


I once again dowloaded that file and testes again after checking the file size, but still have the same error !!!

[root@patrasso Desktop]# dir -l
total 8040
-rw-r--r-- 1 root root 376 Jul 18 2007 mozilla-firefox.desktop
-rw-r--r-- 1 root root 2098474 Jun 22 11:43 MySQL-server-community-5.1.35-0.rhel5.i386.rpm
-rwxrwxrwx 1 root root 6085648 Jun 19 10:38 MySQL-server-community-5.1.35-0.rhel5.i386.rpm.old.mehdi
-rw-r--r-- 1 root root 11935 Jun 19 15:42 Sql\ Install\ Pbm
-rw-r--r-- 1 root root 11731 Jun 19 12:11 Sql\ Install\ Pbm~
[root@patrasso Desktop]# chmod 777 MySQL-server-community-5.1.35-0.rhel5.i386.rpm
[root@patrasso Desktop]# rpm -i /root/Desktop/MySQL-server-community-5.1.35-0.rhel5.i386.rpm
Giving mysqld 5 seconds to exit nicely
warning: /etc/logrotate.d/mysql created as /etc/logrotate.d/mysql.rpmnew
error: unpacking of archive failed on file /usr/bin/myisamchk;4a3f534f: cpio: read

Also to mention that :

[root@patrasso Desktop]# stat -c %s /root/Desktop/MySQL-server-community-5.1.35-0.rhel5.i386.rpm
2098474

gives 2098474 size and not 20023567 bytes, so may be i once again, i downloaded the wron file !!

this what i picked up :

1- From : http://dev.mysql.com/downloads/mysql...x86-32bit-rpms

2- Red Hat Enterprise Linux 5 RPM (x86) downloads
Server 5.1.35-0 19.1M Download | Pick a mirror

Last edited by mehdi1973; 06-22-2009 at 03:17 AM.
 
Old 06-22-2009, 03:43 AM   #4
mehdi1973
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Original Poster
Rep: Reputation: 0
i also tried this process that installed many MySql packages, but still don't work !!! :


1- Get the "MySql" download page ! : http://dev.mysql.com/downloads/mysql/5.1.html#downloads, and choose "Server" option, under "Red Hat Enterprise Linux 5 RPM (x86) downloads"

2- With the mouse, go over "Dowload" link, for the mentionned software packet in #1 of this list


------>>> More Over :

i was wondering if the problem related only to the server software packet, so i downloaded the client too, and tried to install it over the same machine and using the same user "root" and also a problem with it too, here after what i've done and the message i had back !:

[root@patrasso Desktop]# rpm -i /root/Desktop/MySQL-client-community-5.1.35-0.rhel5.i386.rpm

error: unpacking of archive failed on file /usr/bin/mysqladmin;4a3f5ed4: cpio: read

3- With right botton mouse, choose : "open link in new window"

4- Over the window that opens than, choose "open With" option giving "Software Installer (Default)" parameter to it ------------> ALL THIS PROCESS, SEEMS TO INSTALL A LOT A SOFTWARE PACKETS RELATED TO MYSQL, BUT STILL DON'T WORK !!!

Last edited by mehdi1973; 06-22-2009 at 04:06 AM.
 
Old 06-22-2009, 05:47 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by mehdi1973 View Post
I once again dowloaded that file and testes again after checking the file size, but still have the same error !!!
Odd. Are you behind some proxy? Did you flush your browser cache?


Quote:
Originally Posted by mehdi1973 View Post
]# chmod 777 MySQL-server-community-5.1.35-0.rhel5.i386.rpm
You're not going to execute the package so please don't mark it executable.
Never mark something octal mode 777 unless you know what you're doing AND there are no alternatives.


Quote:
Originally Posted by mehdi1973 View Post
From there let's try a FTP, mirrorservice.org, Curl combo: 'cd /tmp; curl ftp://ftp.mirrorservice.org/sites/ft...rhel5.i386.rpm -o /tmp/MySQL-server-community-5.1.35-0.rhel5.i386.rpm'. If you haven't got Curl, use 'wget' and make sure root has no /root/.wgetrc with proxy settings and on the commandline change "-o" to "-O".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
error: unpacking of archive failed: cpio: read tengun Linux - Software 1 11-10-2007 03:51 PM
Yum: unpacking of archive failed neiljt Linux - Software 1 08-01-2006 04:37 AM
coreutils update: fedora4 - error: unpacking of archive failed - operation not permit starms Linux - Security 4 06-06-2006 10:39 AM
unpacking of archive failed: cpio: read failed-input/output error rafc Linux - Newbie 0 04-21-2004 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration