Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Error: unpacking of archive failed on file : cpio: Archive..

 
   Linux (Home) -> Partner Relationship Management RSS
Next:  Unable to open temp file error  
Author Message
krishna.ramdass

External


Since: Oct 06, 2006
Posts: 1



(Msg. 1) Posted: Fri Oct 06, 2006 4:50 am
Post subject: Error: unpacking of archive failed on file : cpio: Archive file not in header
Archived from groups: linux>redhat>rpm (more info?)

Hi All,
I am struck up with a strange problem with the rpmbuild and rpm tools.
I have a particular source tree that has the whole configuration
scripts and the Makefiles inside. When I do a rpmbuild the rpm package
is built and no error is returned.

But when I try to install the package the cpio returns an error that
the Archive header is not right. Find below the commands and the
responses
Rpmbuild -bb Specfile - returns successful and writes both the
debug rpm and the binary rpm in the RPM/arch directory.
Rpm -Uhv rpmfile - returns error due to archive header problem
Preparing... ########################################### [100]
StoreVaultCLI ########################################### [100%]
error: unpacking of archive failed on file ./usr/bin/svmcli: cpio:
Archive file not in header
But when I try to extract the files from the rpm manually the
extraction works without any problem.
[root@lnx176-107 rpm]# rpm2cpio rpmfile | cpio -i
1783 blocks
[root@lnx176-107 rpm]# rpm2cpio rpmfile | cpio -t
../usr/bin/svmcli
../CLI-2.0.0/license.txt
../CLI-2.0.0/svmcli.8
1783 blocks
[root@lnx176-107 rpm]#
There is some problem that I am not able to solve here. Could you guys
help me out??

Thanks,
KK
Back to top
Login to vote
Michal Jaegermann

External


Since: Nov 01, 2005
Posts: 12



(Msg. 2) Posted: Fri Oct 06, 2006 7:06 pm
Post subject: Re: Error: unpacking of archive failed on file : cpio: Archive file not in header [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

krishna.ramdass RemoveThis @gmail.com wrote:
> Find below the commands and the
> responses
> Rpmbuild -bb Specfile - returns successful and writes both the
> debug rpm and the binary rpm in the RPM/arch directory.
> Rpm -Uhv rpmfile - returns error due to archive header problem

What is 'Rpmbuild' and 'Rpm'? Some your private aliases/shell
functions with an "extra magic"?

> Preparing... ########################################### [100]
> StoreVaultCLI ########################################### [100%]
> error: unpacking of archive failed on file ./usr/bin/svmcli: cpio:
> Archive file not in header

Did you check this package with 'rpm -K rpmfile'? What actually is
listed by 'rpm -qvlp rpmfile'? Did you try 'rpm -Uhvvv rpmfile' and
what it gave you back?

> But when I try to extract the files from the rpm manually the
> extraction works without any problem.
> [root@lnx176-107 rpm]# rpm2cpio rpmfile | cpio -i
> 1783 blocks

The above precisely skips that header where supposedly you have problems
and/or discrepancy with a content of an rpm archive.

> [root@lnx176-107 rpm]# rpm2cpio rpmfile | cpio -t
> ./usr/bin/svmcli
.....
If you managed to stick there some extra whitespace in names
this will be hard to see on such listings.

> There is some problem that I am not able to solve here.

The first guess is that you messed up in some way your spec file. Quite
likely you had complaints in a build process which you have chosen to
ignore. There is 'rpmlint' which helps to check specs sanity. Another
possibilty which cames to mind close to the top of a list is that your
version of 'rpmbuild' is buggy; or maybe a build chain which is screwy.
Did you check for updates?

Michal
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Unable to open temp file error - hi folks I am a newbie to rpm. So bear my dumb questions. I am trying to build some rpm on ppc platforms I have a spec file. I run this script f=`echo "$1"|sed -e s/.spec.res//|sed -e s/.spec//` ../brpm.sh SPECS/$f.spec 2>&1|tee $f.s...

RPM error : Can't create transaction lock on / - Hi, I'm trying to install mysql devel rpm on RHEL 5 and I'm stuck at this error and cant proceed further. "error: can't create transaction lock on /" Output of the command that i'm trying to run is as below. # rpm -i -vv..

Referencing file list in %post - I am working on a complex spec file. This spec file (for xemacs) installs a bunch of info files, but does not correctly index them using install-info. I would like to do this task in a %post script (and undo it in postun). However, I have not been abl...

'Strange' tags in a .spec file. - I have a .src.rpm that includes a kernel module (http://dl.atrpms.net/all/madwifi-0.9.6.0-20.el3.at.src.rpm), which I would like to build on my WBL 3.0 system (aka RHEL 3.0). Using the command line: rpmbuild -rebuild madwifi-0.9.6.0-20.el3.at.src.rpm ...

handling removal of shared file - I have 3 specfiles for 3 packages, A, B, C. These packages are related, and all 3 specfiles have same configfile /etc/abc_common.cfg. When I remove package C, rpm -e removes file /etc/abc_common.cfg, even though A and B are still installed. This breaks..
       Linux (Home) -> Partner Relationship Management All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact