When installing dependencies using the apt-get install directive, an error is reported as follows
dpkg: error processing tex-common (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
tex-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
The solution is a three-step process:
The first step
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bak //First rename the info folder
sudo mkdir /var/lib/dpkg/info // Create a new info folder again
sudo apt-get update
The second step
apt-get -f install xxx //Here xxx is replaced by the software to be installed
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bak
The third step
sudo rm -rf /var/lib/dpkg/info //Delete the new info folder you created
sudo mv /var/lib/dpkg/info.bak /var/lib/dpkg/info // change the name of the previous info folder back
So far the installation problem has been solved!
Read More:
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code
- [Solved] E Sub-process usrbindpkg returned an error code (1)
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- [Solved] /usr/bin/ld: cannot find crti.o: No such file or directory & /usr/bin/ld: cannot find -lc
- [Solved] Linux program error: dpkg is interrupted. You must manually run ‘sudo dpkg — configure – a’
- [Solved] Linux error E: dpkg is broken, you must manually run ‘sudo dpkg –configure -a’ to resolve this issue
- Ubuntu Error: dpkg: error processing package mysql-community-server (–configure):
- ubuntu install package Error: subprocess installed post-installation script returned error exit status 10
- /usr/bin/ssh-copy-id: ERROR: No identities found [How to Solve]
- [Solved] Ubuntu Terminal Error: subprocess installed post-installation script returned error exit status 1
- [Solved] OCI runtime create failed: /usr/bin/nvidia-container-runtime did not terminate successfully: unknown
- [problem solving] the problem of err returned non zero status 1 or status 2 is solved after upgrading python3 in Ubuntu
- [Solved] libgit2 returned: the index is locked; this might be due to a concurrent or crashed process
- Ubuntu found an error during apt operation [How to Solve]
- Ubuntu: rabbitmq reports an error; Solution error: unable to connect to node rabbit@localhost : nodedown
- [Solved] dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
- The solution of insufficient disk space of docker in Ubuntu
- The resolution of Ubuntu 16.04 screen can’t be modified and the solution of circulating login