Solution to some terminal error prompts in Ubuntu

Source: Internet
Author: User
Failed. The error message is displayed when the system automatically updates the second time. The information is as follows: E: dpkgwasinterrupted, youmustmanuallyrun 'dpkg -- configure-a'

Failed. The error message is displayed when the system is automatically updated for the second time. The information is as follows:

E: dpkg was interrupted, you must manually run 'dpkg -- configure-a' to correct the problem.

E: _ cache-> open () failed, please report.

Solution:

1. Download the missing jdk doc from sun's official website. You only need to download one of them. I download jdk-66-doc.zip.

2. Copy the downloaded file to the/tmp folder and change the user permission of the file to root: root.

Ubuntu @ ubuntu :~ $ Sudo chown root: root/tmp/jdk-6-doc.zip

After the command is executed, delete the file to reduce disk space usage.

3. Run the following command on the terminal:

Ubuntu @ ubuntu :~ $ Sudo dpkg -- configure-c

Everything is OK, and the system can automatically update it.

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.