NUT for NethServer 7.5

Few days ago we released a recompiled version of Network UPS Tools (NUT) to workaround an upstream bug.

Previously released NUT packages were:

  • nut-2.7.4-17.ns7.x86_64.rpm
  • nut-cgi-2.7.4-17.ns7.x86_64.rpm
  • nut-client-2.7.4-17.ns7.x86_64.rpm
  • nut-debuginfo-2.7.4-17.ns7.x86_64.rpm
  • nut-devel-2.7.4-17.ns7.x86_64.rpm
  • nut-xml-2.7.4-17.ns7.x86_64.rpm

Such RPMs have been now removed from NethServer base update.

The bug is now fixed in EPEL, but I wrongly recompiled a version which is newer than the upstream one, thus we can’t simply install from EPEL.
(Lesson learnt: never recompile an upstream package!)

You could encounter the following YUM errors:

Error: Package: nut-2.7.4-17.ns7.x86_64 (installed)
           Requires: libipmimonitoring.so.5()(64bit)
           Removing: freeipmi-1.2.9-8.el7.x86_64 (@nh-base)
               libipmimonitoring.so.5()(64bit)
           Updated By: freeipmi-1.5.7-2.el7.x86_64 (nh-base)
              ~libipmimonitoring.so.6()(64bit)
Error: Package: nut-2.7.4-17.ns7.x86_64 (installed)
           Requires: libfreeipmi.so.13()(64bit)
           Removing: freeipmi-1.2.9-8.el7.x86_64 (@nh-base)
               libfreeipmi.so.13()(64bit)
           Updated By: freeipmi-1.5.7-2.el7.x86_64 (nh-base)
              ~libfreeipmi.so.17()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

or

Failed to check for updates with the following error message: 
Failed to build transaction: nut-2.7.4-17.ns7.x86_64 requires libfreeipmi.so.13()(64bit)
nut-2.7.4-17.ns7.x86_64 requires libipmimonitoring.so.5()(64bit)

Solution

Remove the old nut package and install the upstream one:

rpm -e nut-2.7.4-17.ns7.x86_64 nut-client-2.7.4-17.ns7.x86_64 --nodeps
yum --disablerepo=* --enablerepo=base,updates,epel install nut
signal-event nethserver-nut-save

I apologize for the inconvenient.

3 Likes