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)

Uninstallation Error

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.

How to download Anydesk and how to install Anydesk

sudo ls -l /var/lib/dpkg/info | grep package_name
Remove Broken Package in Linux

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.

Here you can read How to log in to the Rainloop admin dashboard?

Read More: How to Change Upload limit On CyberPanel?

How to Change Upload limit On CyberPanel?

You can follow us on Facebook too.

How to uninstall ImunifyAV from your server?

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,

How to uninstall ImunifyAV from your server?

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.

wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh

Step 4:

Now run the uninstall script and remove the ImunifyAv from your server. use the command given below.

bash imav-deploy.sh --uninstall

Here you can read How to log in to the Rainloop admin dashboard?

Read More: How to Change Upload limit On CyberPanel?

How to Change Upload limit On CyberPanel?

You can follow us on Facebook too.

How To Uninstall Or Stop ImunifyAV?

What is 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?

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:

wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh

Then run this command to uninstall ImunifyAV from the server:

bash imav-deploy.sh --uninstall

Processing the above two steps you are able to uninstall imaunifyAY.

Stop ImaunifyAY:

ImunifyAV runs as a daemon so the service can be managed using the standard service management commands.

For CentOS/CloudLinux OS 6, run the following command:

service imunify-antivirus stop

For all other operating systems, run the following command:

systemctl stop imunify-antivirus

How to Change Upload limit On CyberPanel?

How to remove MailScanner from Cyberpanel?

How to remove MailScanner from Cyberpanel?

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

wget https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/CPScripts/mailscanneruninstaller.sh
How to remove MailScanner from Cyberpanel?
Download MailScanner uninstaller script form GitHub

2. Set the execute permission

After download uninstaller you need to set execute permission to MailScanner uninstaller by running this command on CLI

chmod +x mailscanneruninstaller.sh

3. Uninstall the MailScanner

Once you downloaded MailScanner uninstaller and set the execute permissions then run the command to uninstall Mailscanner.

./mailscanneruninstaller.sh

After this the Mail Scanner is successfully removed form CyberPanel.

Read more: How to create, delete and manage Child Domains in CyberPanel?

How to fix Fix WordPress 404 permalink OpenLiteSpeed- 404 error on OpenLiteSpeed