The sub-process has installed the post-installation script and Returns Error status 1, dpkg: Processing Package python-crypto (-- configure) error: the package is in a very unstable state;, crypto
When I was studying redis these days, I always reported errors when installing software. The two problems were related to dpkg. I checked some solutions online and found that the following methods can be implemented as a whole.
Although each user needs to install a different package, only the installation package name is different in this case. The following methods are generally used.
The error and solution are as follows:
Question 1:
Dpkg: An error occurred while processing the software package redis-server (-- configure:
The sub-process has installed the post-installation script and Returns Error status 1.
Processing the trigger for libc-bin (2.23-0ubuntu3...
Processing the trigger for systemd (229-4ubuntu10...
Processing the trigger for ureadahead (0.100.0-19...
An error occurred during processing:
Redis-server
E: Sub-process/usr/bin/dpkg returned an error code (1)
Zhangw @ zhangw-g470 :~ $ Sudo rm/var/lib/dpkg/info/redis-server .*
# Delete all the files in the directory related to redis-server (change the software package name according to the error message of dpkg). I feel that the installation script should be used here. If the old files are not deleted, the newly installed package will contain a new script to delete the old one.
Question 2:
Dpkg: An error occurred while processing the python-crypto (-- configure) package:
The software package is in a very unstable state;
You 'd better reinstall it before configuring it.
An error occurred during processing:
Python-crypto
E: Sub-process/usr/bin/dpkg returned an error code (1)
# To solve this problem, you need to back up the info under dpkg, create a new info, update it, and copy the content in the new info to the old one, change the old one to info and delete the added
zhangw@zhangw-g470:~$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old
zhangw@zhangw-g470:~$ sudo mkdir /var/lib/dpkg/info
zhangw@zhangw-g470:~$ sudo apt-get update
zhangw@zhangw-g470:~$ sudo apt-get -f install
zhangw@zhangw-g470:~$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old zhangw@zhangw-g470:~$ sudo rm -rf /var/lib/dpkg/info zhangw@zhangw-g470:~$ sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info zhangw@zhangw-g470:~$