Use the dpkg -i/apt command to install, an error is reported:
————————————————– ———–
dpkg: error: dpkg status database is locked by another process
Unable to obtain lock /var/lib/apt/lists/lock-open
————————————————– ————
1. It may be the software center, just close it, or open ‵System Monitor‵, and kill the process with the words apt, dpkg in the process.
2. It may also be caused by an ubuntu upgrade error or forced interruption, then proceed as follows:
$ sudo rm /var/lib/dpkg/lock
$ sudo dpkg –configure -a
$ sudo rm /var/lib/apt/lists/lock
sudo -i can directly switch root permissions
Similar Posts:
- E: Unable to get lock / var / lib / apt / lists / lock – Open (11 resources temporarily unavailable)
- Could not open lock file/var/lib/dpkg/lock [How to Solve]
- [Solved] E: dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the probl…
- ubuntu Resource temporarily unavailable (Could …
- Error reporting in Ubuntu apt get upgrade [How to Solve]
- [Solved] dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
- [How to Solve] E: Encountered a section with no Package: header
- Ubuntu 16.04 troubleshooting MySQL error [How to Solve]
- [Solved] Apt-get -f install Error: No apport report written because MaxReports is reached already Errors were…