Ubuntu installation software prompts you not to open the lock file/var/lib/dpkg/lock

Source: Internet
Author: User
Tags touch

Install make prompt with Apt-get "Unable to open lock file/var/lib/dpkg/lock"

# Apt-get Install Vim

E: Unable to open lock file/var/lib/dpkg/lock-open (2: No file or directory)

E: Unable to lock the status list directory (/var/lib/dpkg/), please see if you are running as root user?

This problem often occurs because there is no deletion of this write file!!

Workaround:

Build an empty file and copy it to the appropriate location:

Touch Lock
      
Copy lock/var/lib/dpkg

Again apt-get install vim

Also prompt: E: Unable to open file/var/lib/dpkg/status-open

In the touch of a status file, and then copied to the appropriate file.

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

Related Article

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.