rickysarraf / laptop-mode-tools

Power Savings tool for Linux
https://www.researchut.com/tags/laptop-mode-tools/
GNU General Public License v2.0
550 stars 47 forks source link

Uninstall error (Error in PREUN scriptlet in rpm package laptop-mode-tools) #200

Open SnowzNZ opened 1 year ago

SnowzNZ commented 1 year ago

Describe the bug When attempting to remove laptop-mode-tools with sudo dnf remove laptop-mode-tools I am prompted with the following error

Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                    1/1 
  Running scriptlet: laptop-mode-tools-1.74-1.noarch                                                                                                                                                                                    1/1 
/var/tmp/rpm-tmp.IOH2lv: line 3: /sbin/chkconfig: No such file or directory
error: %preun(laptop-mode-tools-1.74-1.noarch) scriptlet failed, exit status 127

Error in PREUN scriptlet in rpm package laptop-mode-tools
  Verifying        : laptop-mode-tools-1.74-1.noarch                                                                                                                                                                                    1/1 

Failed:
  laptop-mode-tools-1.74-1.noarch                                                                                                                                                                                                           

Error: Transaction failed

To Reproduce Steps to reproduce the behavior:

  1. Open a terminal
  2. Execute sudo dnf remove laptop-mode-tools

Expected behavior I expect the package to be removed/uninstalled from the system.

Important Information:

rickysarraf commented 1 year ago

Thanks for reporting this issue. I hoped that the .spec I prepared will be basic/generic enough. I will try to re-create a Fedora container image to see how best to address this