E: sub-process/usr/bin/dpkg returned an error code (1) Solution
Software Version:
Operating System: ubuntu10.04
Kernel version: Linux version 2.6.32-41-generic
Directory:
1. Error
2. Solution
1) solution 1
2) solution 2
3) solution 3
3. References
1. Error
When you use apt-get to install the tool, you will encounter this error no matter what software you install:
DPKG: Warning: files list file for package 'tex-common' missing, assuming package has no files currently installed. (Reading database... 150177 files and directories currently installed .) preparing to replace Tex-common 2.06ubuntu0.1 (using... /tex-common_2.06ubuntu0.1_all.deb )... unpacking replacement Tex-common... processing triggers for Doc-base... processing 2 changed doc-base file (s )... registering logs ents with scrollkeeper... processing triggers for man-DB... setting up Tex-common (2.06ubuntu0.1 )... running mktexlsr. this may take some time... done. no packages found matching texlive-base.dpkg: Error Processing Tex-common (-- configure): subprocess installed post-installation script returned error exit status 1 errors were encountered while processing: Tex-commone: sub-process/usr/bin/dpkg returned an error code (1)
2. Solution
1) solution 1
CD/var/lib/dpkgsudo MV info. baksudo mkdir info to reinstall sudo apt-Get -- reinstall Tex-common
This solution comes from [1]. This method may cause a large volume of warning during software installation.
2) solution 2
CD/var/lib/dpkg/infosudo mkdir Tex-commonsudo MV Tex-common. * Tex-CommoN
This method is based on the solution and can solve this problem. I am not sure if it will cause other errors.
3) solution 3
Sudo apt-Get purge Tex-commonsudo apt-Get install Tex-common
This solution is to clear Tex-common and reinstall it. From [2].
3. References
[1]. http://forum.ubuntu.org.cn/viewtopic.php? F = 86 & amp; T = 90547
Http://askubuntu.com/questions/25693/dpkg-behaving-strangely.