laptop-mode-tools icon indicating copy to clipboard operation
laptop-mode-tools copied to clipboard

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

Open SnowzNZ opened this issue 1 year ago • 1 comments

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:

  • Distribution: Fedora 37
  • Linux Kernel: 6.1.18-200
  • Laptop Mode Tools version: unsure
  • Desktop Environment, if any: KDE Plasma
  • Relevant System Logs
  • Laptop Mode Tools verbose logs

SnowzNZ avatar Mar 16 '23 22:03 SnowzNZ

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

rickysarraf avatar Mar 17 '23 14:03 rickysarraf