Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Unable to remove MegaRaid-Storage-Manager

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
02ebz06
Posts: 24
Joined: 2017-12-23 21:22

[Solved] Unable to remove MegaRaid-Storage-Manager

#1 Post by 02ebz06 »

I have two Debian Servers, each with a LSI MegaRaid 9240-8i raid controllers in them and a Windows box with an LSI MegaRaid 9240-4i controller in it.
I was trying to upgrade the megaraid-storage-manager on one of the servers (running Buster) and tried removing the v14 first.

Here is the error from the removal process (some parts removed):
Shutting down Framework:
/sbin/insserv: No such file or directory
vivaldiframeworkd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
dpkg: error processing package megaraid-storage-manager (--remove):
installed megaraid-storage-manager package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping

The messages above were from apt-get --purge remove command.
The one below is from dpkg -r megaraid-storage-manager:

(Reading database ... 217717 files and directories currently installed.)
Removing megaraid-storage-manager (14.11.01-00) ...
/
Framework is already stopped.....
/sbin/insserv: No such file or directory
vivaldiframeworkd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
dpkg: error processing package megaraid-storage-manager (--remove):
installed megaraid-storage-manager package pre-removal script subprocess returned error exit status 1

Tried just install in V17, but it has the same problem.

Also upgraded to Bullseye, then tried, but same problem.

Anybody have any ideas how to get this removed?

TIA
Last edited by 02ebz06 on 2021-10-01 19:12, edited 1 time in total.

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1400
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 79 times
Been thanked: 175 times

Re: Unable to remove MegaRaid-Storage-Manager

#2 Post by steve_v »

02ebz06 wrote: 2021-09-26 23:06/sbin/insserv: No such file or directory
Is likely the cause of the problem, since Debian has switched to systemd(isaster) the sysvinit maintenance binaries are probably no longer installed by default.

Options, off the top of my head:
Remove or fix the pre-removal script (/var/lib/dpkg/info/$pkgname.prerm, IIRC)
Install insserv, it appears it's still in the repos.
Link /sbin/insserv to /bin/true temporarily so the command returns 0.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

02ebz06
Posts: 24
Joined: 2017-12-23 21:22

Re: Unable to remove MegaRaid-Storage-Manager

#3 Post by 02ebz06 »

Thank you very much!!!

Installing insserv solved the problem.

Post Reply