I want to install the samba server a few days ago. First I installed an installation package for the samba server, and then I started to report the following error: dpkg: Processing samba4 (-- configure ). At that time, I thought the Operation Document was incorrect and I stopped the installation. As a result, the above error will be reported within a few days after apt-get is used for installation. It seems that the installed software is usable, but the error is helpless. The following are the solutions I have found, and the actual experience is indeed feasible.
1. $ sudo mv/var/lib/dpkg/info/var/lib/dpkg/info_old // rename the info folder.
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 operation, some files will be generated in the new info folder, move all these files to the info_old folder.
5. $ sudo rm-rf/var/lib/dpkg/info // Delete the info folder you created
6. $ sudo mv/var/lib/dpkg/info_old/var/lib/dpkg/info // rename the previous info folder
Haha. Can you do the same?