The ubuntu installation software prompts "the lock file cannot be opened/var/lib/dpkg/lock ".
Source: Internet
Author: User
Ubuntu installation software prompts that the lock file cannot be opened/var/lib/dpkg/lock. solve the problem by installing make with apt-get. prompt that the lock file cannot be opened/var/lib/dpkg/lock # apt- getinstallvimE: unable to open the lock file/var/lib/dpkg/lock-open (2 :... the ubuntu installation software prompts "unable to open the lock file/var/lib/dpkg/lock". solve the problem by installing make with apt-get. the prompt "unable to open the lock file/var/lib/dpkg/lock" is displayed. "# apt-get install vimE: unable to open the lock file/var/lib/dpkg/lock-open (2: no file or directory) E: unable to lock the Status List Directory (/var/lib/dpkg/). Please check whether you are running as a root user? Www.2cto.com has such a problem because the file is not deleted! Solution: create an empty file and copy it to the corresponding location: [cpp] touch lock copy lock/var/lib/dpkg again apt-get install vim and prompt: E: you cannot open the file/var/lib/dpkg/status-open. in touch, copy the file to the corresponding file. Www.2cto.com
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