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] Linux program error: dpkg is interrupted. You must manually run ‘sudo dpkg — configure – a’
- subprocess installed post-installation script returned error exit status 1
- Ubuntu Error: dpkg: error processing package mysql-community-server (–configure):
- [Solved] error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
- [Solved] dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
- [Solved] Ubuntu Terminal Error: subprocess installed post-installation script returned error exit status 1
- Ubuntu found an error during apt operation [How to Solve]
- [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
- NVIDIA SMI error after Ubuntu 20.04 restart [How to Solve]
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- How to Solve Roscore Run error [Install ROS]
- Linux apt-get update Error: Error in `appstreamcli‘: double free or corruption … Aborted (core dumped)
- The solution of insufficient disk space of docker in Ubuntu
- [Solved] ubuntu Boot Error: /dev/nume0n1p2:clean
- Using apt get to delete software completely
- EasyConnect linux (ubuntu 20.04) Run Error [How to Solve]
- [Solved] mongo Startup Error: ERROR: child process failed, exited with error number 1
- An error occurred during the signature verification in the ROS function pack warehouse
- Ubuntu update source error: E: Problem executing scripts APT::Update::Post-Invoke-Success…