How to Uninstall or Remove Broken Package in Linux?
Many times it happens that when you try to uninstall a package you encounter an error and the package cannot be uninstalled. This happens when the package is broken. To overcome this issue, we remove the post files of the package to make things work. in this article we are going to learn how to Remove Broken Package in Linux.
Recently, I was trying to remove the ImunifyAV package but encountered this error. E: Sub-process /usr/bin/dpkg returned an error code (1)
Removing the Post Files
To fix this issue and remove the package successfully, we need to remove the post files manually for this package. But first, we need to see the files for this package. The installation files are usually located at /var/lib/dpkg/info file. Type in the following command and replace the package_name with the name of the package that you want to remove.
In my case, I replaced the package_name with imunify-antivirus. This thing helps me to list all packages of imunify-antivirus. Now we need to remove these files manually. For that, type the command:
sudo mv /var/lib/dpkg/info/package_name.* /tmp
This will move all the post files to the tmp directory in case we need them back for any reason. Once the command executed to remove files. After doing that reinstall the package again without getting any errors.
Don’t forget to run the sudo apt update command after removing the files.
after doing all these just run commands to Remove Broken Package in Linux.
Command to Remove Broken Package in Linux:
$ apt unintsall <package-name>
After doing all these steps you can run the uninstall command like this given above and get the required results.
ImunifyAV is not suitable for every server and maybe sometimes you need to uninstall ImunifyAV from your server to work properly.
In this short article, I will try to explain how to uninstall ImunifyAV from your server using few commands. So follow the process along with me to remove imunifyAV from your server.
Step 1:
Access the SSH client as root of your server using credentials to your server. Like bitwise or Putty,
Step 2:
Stop the imunifyAV services using the command given below.
systemctl stop imunify-antivirus
Step 3:
Now download the imunifyAV script to uninstall the imunifyAV from your server. To download that scrip use the command.
A lot of users install ImunifyAV but after some issue, if they want to uninstall they do not know how to do this. Here in this article, we will tell you How To Uninstall Or Stop ImunifyAV?
ImunifyAV – an intelligent antivirus and security monitoring tool for websites with one-click automatic malware cleanup, domain reputation monitoring, and blacklist status check. Read more about ImunifyAV
A lot of users install ImunifyAV but after some issue, if they want to uninstall they do not know how to do this. Here in this article, we will tell you How To Uninstall Or Stop ImunifyAV?
In this artical we provide the way where you can able to uninstall or Stop ImunifyAV.
Uninstall ImunifyAV:
To uninstall ImunifyAV, you need to first download the imav-deploy.sh script with the following command:
Maybe you have installed MailScanner on your server from CyberPanel, And you want to remove it for some reason. In this article, we are going to show how to remove MailScanner from CyberPanel?.
What is MailScanner?
MailScanner is an open-source email security system. it designed for a Linux-based email gateway. The purpose of MailScanner is to scans email for viruses, spam, phishing, malware, and other attacks against security vulnerabilities.
Follow the procedure to remove MailScanner form CyberPanel:
1. Download MailScanner uninstaller script form GitHub
Frist you need to download uninstaller form GitHub . Run this command on CLI it will download MailScanner uninstaller