Dpkg: error resolution when processing software package XXXX (--configure)
Can't exec "md5sum": there is no file or directory at / usr/share/perl/5.24/IPC/Open3.pm line 178, line 11.
Open2: exec of md5sum failed: No such file or directory at / usr/sbin/pam-auth-update line 394.
Dpkg: error processing package libpam-systemd:amd64 (--configure):
The child process has installed the post-installation script and returned error status 2
Setting tex-common (6.06).
/ usr/sbin/update-texmf: 1: / usr/sbin/update-texmf: find: not found
/ usr/sbin/update-updmap: line 271: / usr/bin/find: there is no such file or directory
Dpkg: error processing package tex-common (--configure):
The child process has installed the post-installation script and returned error status 127
Setting initramfs-tools (0.127)...
Update-initramfs: deferring update (trigger activated)
Dpkg: dependency issues prevent the configuration of network-manager from continuing:
Network-manager depends on libpam-systemd;, however:
The package libpam-systemd:amd64 has not been configured.
Dpkg: error processing package network-manager (--configure):
Dependency issues-still not configured
Dpkg: dependency issues prevent the configuration of texlive-latex-base from continuing:
Texlive-latex-base depends on tex-common (> = 6); however:
The package tex-common has not been configured.
Dpkg: error processing package texlive-latex-base (--configure):
Dependency issues-still not configured
Dpkg: dependency issues prevent the configuration of texlive-latex-base-doc from continuing:
Texlive-latex-base-doc depends on tex-common (> = 6); however:
The package tex-common has not been configured.
Dpkg: error processing package texlive-latex-base-doc (--configure):
Dependency issues-still not configured
Processing trigger for initramfs-tools (0.127).
/ usr/sbin/update-initramfs: 218: / usr/sbin/update-initramfs: ls: not found
Update-initramfs: Generating / boot/initrd.img-4.9.0-kali2-amd64
Solution:
Whether you want sudo or not, choose by yourself.
1.$ sudo mv / var/lib/dpkg/info / var/lib/dpkg/info_old / / rename the info folder now
2.$ sudo mkdir / var/lib/dpkg/info / / create a new info folder
3. $sudo apt-get update & & apt-get-f install / / No need to explain
4. $sudo mv / var/lib/dpkg/info/* / var/lib/dpkg/info_old / / after performing the previous step, some files will be generated in the new info folder. Now move all these files to the info_old folder.
5.$ sudo rm-rf / var/lib/dpkg/info / / Delete the newly created info folder
6. $sudo mv / var/lib/dpkg/info_old / var/lib/dpkg/info / / change the previous info folder