DPKG: Error resolution when handling XXX (--configure)
There was a problem installing NFS this morning, locate the article, and backup is retained.
And then found the article on the Internet, follow the steps to solve the problem, the middle will prompt automatic unloading, the execution of the command is good,
The situation I encountered was when I installed the software on Ubuntu using Apt-get, the following error occurred:
Setting Nfs-common (1:1.2.2-4UBUNTU5) ...
DPKG: Error processing Nfs-common (--configure):
Child process installed Post-Installation script returned error Number 10
Setting Samba-common (2:3.5.8~dfsg-1ubuntu2.3) ...
DPKG: Error processing Samba-common (--configure):
Child process installed Post-Installation script returned error Number 10
Dpkg: Dependency issues make Samba's configuration work impossible:
Samba relies on samba-common (= 2:3.5.8~dfsg-1ubuntu2.3), however:
Package Samba-common is not yet configured.
DPKG: An error occurred while processing samba (--configure):
Dependency issues-Still not configured
Dpkg: Dependency issues make the smbclient configuration work impossible to continue:
Smbclient depends on Samba-common (= 2:3.5.8~dfsg-1ubuntu2.3); however:
Package Samba-common is not yet configured.
DPKG: Error processing smbclient (--configure):
Dependency issues-Still not configured
The Apport report was not written because the error message indicates that this was caused by a previous problem.
The Apport report was not written because the maxreports limit has been reached.
An error occurred while processing:
Nfs-common
Samba-common
Samba
Smbclient
E:sub-process/usr/bin/dpkg returned an error code (1)
Despite the error, the installed software is still available, as if it was not installed when the Samba server was installed, there is an article on the Internet:
Http://hi.baidu.com/dream__land/blog/item/46dfe6fded06880109244d18.html
1.$ sudo mv/var/lib/dpkg/info/var/lib/dpkg/info_old//renaming the Info folder now
2.$ sudo mkdir/var/lib/dpkg/info//re-create a new info folder
3.$ sudo apt-get update, apt-get-f Install//Don't explain it.
4.$ sudo mv/var/lib/dpkg/info/*/var/lib/dpkg/info_old//After performing the previous action, some files are generated under the new Info folder and are now moved to the Info_old folder
5.$ sudo rm-rf/var/lib/dpkg/info//delete your new info folder
6.$ sudo mv/var/lib/dpkg/info_old/var/lib/dpkg/info//Change the previous Info folder back to the name
DPKG: Error resolution when handling XXX (--configure), can also be used to uninstall software error condition