I want to install smarmontools v 5.40, and so I pulled the SRPM for 5.39 so I could patch and install...
$ wget -Nc ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Workstation/en/os/SRPMS/smartmontools-5.39.1-2.el6.src.rpm
However, the install of the source fails.
$ rpm -ivh smartmontools-5.39.1-2.el6.src.rpm warning: smartmontools-5.39.1-2.el6.src.rpm: V3 RSA/MD5 signature: NOKEY, key ID fd431d51 1:smartmontools warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root ########################################### [100%] error: unpacking of archive failed on file /home/jmccarty/devtools/RebuildRPM/build/SOURCES/smartd.initd;4d39deaa: cpio: MD5 sum mismatch
Is the SRPM corrupted? I've pulled a few from other places for other versions (like Fedora) from pbone, and they all have this problem.
Any hints available?
Mike
Mike McCarty wrote:
[...]
$ rpm -ivh smartmontools-5.39.1-2.el6.src.rpm warning: smartmontools-5.39.1-2.el6.src.rpm: V3 RSA/MD5 signature: NOKEY, key ID fd431d51
Hmm, maybe I need a later version of RPM.
https://bugzilla.redhat.com/show_bug.cgi?id=436812
Mike
Mike McCarty wrote:
Mike McCarty wrote:
[...]
$ rpm -ivh smartmontools-5.39.1-2.el6.src.rpm warning: smartmontools-5.39.1-2.el6.src.rpm: V3 RSA/MD5 signature: NOKEY, key ID fd431d51
Hmm, maybe I need a later version of RPM.
https://bugzilla.redhat.com/show_bug.cgi?id=436812
Mike
As I understand it, there have been some changes in the checksum methods in the newer versions of RPM. If you want to install package built with the newer versions, you need to add the --nomd5 option to the rpm command to avoid the signature errors:
rpm -ivh --nomd5 smartmontools-5.39-1.2.el6.src.rpm
Of course, once that's done the fun is just starting. Since the original was built for RHEL6, it may have dependencies on newer versions of other packages.
Your mileage may vary.
Jay Leafey wrote:
Mike McCarty wrote:
Hmm, maybe I need a later version of RPM.
https://bugzilla.redhat.com/show_bug.cgi?id=436812
Mike
As I understand it, there have been some changes in the checksum methods in the newer versions of RPM. If you want to install package built with the newer versions, you need to add the --nomd5 option to the rpm command to avoid the signature errors:
That was my (provisional) conclusion, and that's what I did. Version 5.40 is now happily running on my system. Hadda update the smartd.conf file, of course, for my needs.
rpm -ivh --nomd5 smartmontools-5.39-1.2.el6.src.rpm
Of course, once that's done the fun is just starting. Since the original was built for RHEL6, it may have dependencies on newer versions of other packages.
I had no other problems. I probably need to get a later version of RPM source and install. I had already done a straight tarball build and install into /usr/local for some testing, but wanted RPM to do it "right", so I needed a SPEC file, mostly.
Your mileage may vary.
Thanks!
Mike
########################################### [100%] error: unpacking of archive failed on file /home/jmccarty/devtools/RebuildRPM/build/SOURCES/smartd.initd;4d39deaa: cpio: MD5 sum mismatch
Is the SRPM corrupted? I've pulled a few from other places for other versions (like Fedora) from pbone, and they all have this problem.
Any hints available?
Happens with SRPMS from newer Fedoras. Unpack it manually into /usr/src/redhat/SOURCES and move the spec file into place.
--------------------------------------------------------------- This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ---------------------------------------------------------------
Lars Hecking wrote:
########################################### [100%] error: unpacking of archive failed on file /home/jmccarty/devtools/RebuildRPM/build/SOURCES/smartd.initd;4d39deaa: cpio: MD5 sum mismatch
[...]
Happens with SRPMS from newer Fedoras. Unpack it manually into /usr/src/redhat/SOURCES and move the spec file into place.
What I did was turn off MD5 checking, and I got what I needed.
Thanks!
Mike
On Fri, Jan 21, 2011 at 3:03 PM, Lars Hecking lhecking@users.sourceforge.net wrote:
########################################### [100%] error: unpacking of archive failed on file /home/jmccarty/devtools/RebuildRPM/build/SOURCES/smartd.initd;4d39deaa: cpio: MD5 sum mismatch
Is the SRPM corrupted? I've pulled a few from other places for other versions (like Fedora) from pbone, and they all have this problem.
Any hints available?
Happens with SRPMS from newer Fedoras. Unpack it manually into /usr/src/redhat/SOURCES and move the spec file into place.
*NEVER DO THIS*.
Always, always, always start your development as a normal user, not as root, and use a .rpmmacros that acts accordingly. For example, for user "nkadel", in "/home/nkadel/.rpmmcros", I have
%_topdir /home/nkadel/rpm
And I set up a subdirectories there as necessary.
*NEVER DO THIS*.
Always, always, always start your development as a normal user, not as root, and use a .rpmmacros that acts accordingly. For example, for user "nkadel", in "/home/nkadel/.rpmmcros", I have
%_topdir /home/nkadel/rpm
And I set up a subdirectories there as necessary.
Noted.
--------------------------------------------------------------- This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ---------------------------------------------------------------