You can remove the package file in this /var/lib/dpkg/info/
path and update the source.
sudo rm /var/lib/dpkg/info/[package_name].*
sudo dpkg --configure -a
sudo apt-get update
Then, reinstall your package sudo apt-get install [package_name]
Source: dpkg – How to remove/install a package that is not fully installed? – Ask Ubuntu
dpkg – How to remove/install a package that is not fully installed? – Ask Ubuntu was last modified: April 24th, 2020 by