E: sub-process/usr/bin/dpkg returned an error code (1) Solution

Source: Internet
Author: User

 

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.