Try to removing the file associated to the package in question from /var/lib/dpkg/info. In my case, i had an issue with installing  mysql package. So i looked for the files associated with it :

cyberkidal@visitketapang:/etc$ ls -l /var/lib/dpkg/info | grep -i mysql
-rw-r–r– 1 root root 1280 Mar 17 01:47 mysql-client-5.7.list
-rw-r–r– 1 root root 1734 Oct 23 08:20 mysql-client-5.7.md5sums
-rw-r–r– 1 root root 437 Nov 23 22:17 mysql-client-core-5.7.list
-rw-r–r– 1 root root 546 Oct 23 08:20 mysql-client-core-5.7.md5sums
-rw-r–r– 1 root root 87 Oct 23 08:11 mysql-common.conffiles
-rw-r–r– 1 root root 469 Mar 17 01:47 mysql-common.list

and then remove all of these files :

cyberkidal@visitketapang:/etc$ sudo mv /var/lib/dpkg/info/mysql-* /tmp

Use the  sudo apt update and then you should be able to install software as usual.