Trying to install debian package from server with apt install command.
dpkg: error processing package <pkg_name> (--configure): installed <pkg_name> package post-installation script subprocess returned error exit status 30 Processing triggers for ufw (0.36-6ubuntu1) ... Errors were encountered while processing: E: Sub-process /usr/bin/dpkg returned an error code (1)
I was trying to install the debian from server using "apt install"it throws "dpkg" error. The same is being installed via "dpkg-i" command works fine.
Tried with these commands:
sudo apt-get install --reinstall <pkg_name>
sudo apt-get update
sudo apt-get upgrade
sudo dpkg --configure -a
0.36-6ubuntu1