Koozali.org: home of the SME Server

Updating nut with yum

Offline waldviertler

  • ***
  • 109
  • +0/-0
Updating nut with yum
« on: April 29, 2024, 04:07:46 PM »
Today I got a message to update over yum - so I did.

But I get this errors:
Code: [Select]
Loaded plugins: fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
 * base: centos.mirror.alwyzon.net
 * smeaddons: mirrors.misouk.com
 * smeextras: mirrors.misouk.com
 * smeos: mirrors.misouk.com
 * smeupdates: mirrors.misouk.com
 * updates: centos.mirror.alwyzon.net
Resolving Dependencies
--> Running transaction check
---> Package nut.x86_64 0:2.7.2-4.el7 will be updated
---> Package nut.x86_64 0:2.8.0-2.el7 will be an update
---> Package nut-client.x86_64 0:2.7.2-4.el7 will be updated
--> Processing Dependency: libupsclient.so.4()(64bit) for package: nut-cgi-2.7.2-4.el7.x86_64
--> Processing Dependency: nut-client = 2.7.2-4.el7 for package: nut-cgi-2.7.2-4.el7.x86_64
---> Package nut-client.x86_64 0:2.8.0-2.el7 will be an update
--> Finished Dependency Resolution
Error: Package: nut-cgi-2.7.2-4.el7.x86_64 (@epel)
           Requires: nut-client = 2.7.2-4.el7
           Removing: nut-client-2.7.2-4.el7.x86_64 (@anaconda/10.0)
               nut-client = 2.7.2-4.el7
           Updated By: nut-client-2.8.0-2.el7.x86_64 (smeupdates)
               nut-client = 2.8.0-2.el7
Error: Package: nut-cgi-2.7.2-4.el7.x86_64 (@epel)
           Requires: libupsclient.so.4()(64bit)
           Removing: nut-client-2.7.2-4.el7.x86_64 (@anaconda/10.0)
               libupsclient.so.4()(64bit)
           Updated By: nut-client-2.8.0-2.el7.x86_64 (smeupdates)
              ~libupsclient.so.6()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
yum update nut-client.x86_64 nut.x86_64 failed: 256

What should I do?
Thanks in advice.

Martin


Offline Jean-Philippe Pialasse

  • *
  • 2,773
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Updating nut with yum
« Reply #2 on: April 29, 2024, 08:22:01 PM »
nut-cgi is not part of our core distro but is in EPEL. you might have installed (like me ) it according to the wiki.


you can either wait for repo to sync (I have added it to our repo) or to enable epel for this update

yum update nut-cgi --enablerepo=epel

Offline waldviertler

  • ***
  • 109
  • +0/-0
Re: Updating nut with yum
« Reply #3 on: April 30, 2024, 01:53:40 PM »
Thank you very much!

Martin

Offline Jean-Philippe Pialasse

  • *
  • 2,773
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Updating nut with yum
« Reply #4 on: April 30, 2024, 04:10:20 PM »
Martin,

I hope you did not run the upgrade yet.

nut-2.8.0 intrroduce a lot of breaking changes.
 service will fail to run with our current configuration
 it will be a no fix as SME10 is almost eol, and the current 2.8.0 in EPEL 7 seems buggy and half baked looking at the openned bugs (it is worst currently for el8 and el9 with newer releases)

i have removed the upgrades from SME mirrors

if you did do the upgrade
Code: [Select]
yum  downgrade nut nut-client nut-cgi
systemctl restart nut
should do the trick

if not you might need to uninstall first nut-cgi, and then install it from epel archive
https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/n/nut-cgi-2.7.2-4.el7.x86_64.rpm

Code: [Select]
rpm -e nut-cgi
yum downgrade nut nut-client
systemctl restart nut
wget https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/n/nut-cgi-2.7.2-4.el7.x86_64.rpm
yum install nut-cgi-2.7.2-4.el7.x86_64.rpm

please see more on https://forums.koozali.org/index.php?topic=55171.0
« Last Edit: April 30, 2024, 04:23:20 PM by Jean-Philippe Pialasse »