Case 1 :
So while trying to install a bundle and it got stuck in pending forever.

Case 2 :
The bundle may not be installed properly and display errors like.




Case 3 :
Unistalling the bundle won’t get finished properly and displays error.

Solution :
Trying to re-install the bundle or update the update. Otherwise
Navigate to Customization –> Scripting –> Script deployments
Now go to type as Bundle Installation and try to undeploy the following scripts by click edit next to the script.



We need to disable the checkbox next to the Deployed and click the save button.
Now try to install or unistall the bundle.