Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

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

 
   Soft32 Home -> Linux -> 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: Thu Oct 05, 2006 11:50 pm
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: Jul 20, 2003
Posts: 70



(Msg. 2) Posted: Fri Oct 06, 2006 2: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.TakeThisOut@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:
Multiple RPMs in one RPM archive - Hi there, Is is possible to embed multiple RPMs in one RPM archive? The reason is that we need to upgrade multiple..

locale-archive deleted --system down - By mistake i deleted the locale-archive file in /usr/lib/locale and now my system is down . Can anybody help with a..

Unpacking source code through rpmbuild... - Hi… For installing SRPMS ..first I mount the source cd by ‘mount /mnt/cdrom/SRPMS’ & ...

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..

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..

RH 9 with perl-5.8.0-88.3 and strange error in log file - Hi all! I have a server with RedHat9 with all update from APT and up2date, but if I look in to /var/log/messages I foun...
       Soft32 Home -> Linux -> 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
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]