Install ubuntu12.04 there today. it is always stuck when flash is installed, and it cannot be switched off. it is only mandatory. However, the dpkg lock error is always reported if you disable it and install it again. The solution is as follows: Ubuntu
The error is as follows:
Copy codeThe code is as follows:
Reading the package list... error!
E: unable to open the file/var/lib/dpkg/status-open (2 does not have this file or directory)
E: unable to parse or open the package list or status file
Delete the entire dpkg folder accidentally. The sudo-get command is useless. I tried a lot of methods and couldn't do it. I went to the ubuntu Forum and saw the post I posted a few years ago. The result was correct. I will summarize it here.
1. go to the link http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/to download the corresponding version.
2. the command is used here.
Copy codeThe code is as follows:
$ Su
Password :*****
# Ar x dpkg_version_arch.deb
# Mv data.tar.gz/data.tar.gz
# Cd/
# Tar xzfv data.tar.gz
Step 3: # rm/var/lib/dpkg/status
Step 4: # cp/var/backups/dpkg. status.0/var/lib/dpkg/status
Finally OK.