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

Source: Internet
Author: User

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:~$

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.