Cd/var/lib/dpkg
sudo mv info info.bak #即备份一个info
sudo mkdir info #新建一个新的info目录
Then use the following command to reload the faulty package
sudo apt-get–reinstall Install package name
At first I wanted to install several packages at the same time in one command, and the result was e:sub-process/usr/bin/dpkg returned an error code (1). So the new info is deleted, one to install, each loaded a package, the info is deleted, and then create a new one, so there is no hint e:sub-process/usr/bin/dpkg returned an error code (1).
Finally, replace the new info with the original Info.bak
SUDO-RF Info
sudo mv Info.bak info
After input sudo apt-get update and sudo apt-get upgrade as well as sudo apt-get autoremove no longer have e:sub-process/usr/bin/dpkg returned an err or code (1).
Ubuntu Error sub-process/usr/bin/dpkg returned an error code (1) Workaround