Bug 2895 - rpm has crytic error message
rpm has crytic error message
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
6.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-05-17 19:33 EDT by phinely
Modified: 2015-01-07 18:37 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-05-18 10:44:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description phinely 1999-05-17 19:33:24 EDT
When trying to install an rpm package with rpm, rpm gives a
rather cryptic error message if the md5 checksum of the file
fails.  All rpm says is:
  error: foo.rpm cannot be installed

Instead rpm should explain the problem in more detail.
Something like this:
  MD5 checksum failed.  file is corrupt.
  foo.rpm cannot be install


Bit corruption of packages is not uncommon, especially when
they have been transported over ftp.  The IP checksum
actually misses a disturbing number of bit errors.
Comment 1 Jeff Johnson 1999-05-18 10:44:59 EDT
By design, rpm does not check MD5 sums during install (this is
a separate operation rpm --checksig). The error message that
you are seeing comes from a failure to correctly read the package
header. The likeliest failures in trying to read the header are
    1) incorrect magic number
    2) truncated header
which have equally cryptic (but distinguishable!) error messages.
Comment 2 kestes 2000-11-03 11:23:19 EST
This is such a bad error I can not believe that you defend it
  error: foo.rpm cannot be installed
Gives no hint that the problem is with the package file. Clearly
you need to create a simple santiy check that the package file is not corupt
This could be as simple as checking the file magic number (incase the file
is totally hosed) and checking that the file length is larger then the
 payload size listed in the header magic number section(in case it was
 truncated).  See scripts/rpmdiff for an example of sanity checking


Note You need to log in before you can comment on or make changes to this bug.