E: can not get lock / var / lib / dpkg / lock-frontend - open (11: Resource temporarily unavailable) E: Unable to get dpkg front end lock (/ var / lib / dpkg / lock-frontend), whether there are other process is occupy it?

(scrapingEnv) Python Python-VirtualBox @: ~ / $ scrapingEnv the install the sudo APT python3- PIP 
E: not get lock / var / lib / dpkg / Lock-frontend - Open (. 11 : Resource temporarily unavailable) 
E: Unable to get the front end dpkg lock ( / var / lib / dpkg / lock-frontend), if there are other processes it is occupying it?

In ubuntu under termial system with apt-get install to install the software, if in the case of unfinished download the terminal close. In this case apt-get process may not end. As a result, if you run again apt-get install command to install now, the above tips may occur.

Solution is as follows:
1. Input terminal ps aux, list the processes. Find the process contain apt-get directly sudo kill PID.

2. Forced unlocking command
sudo rm / var / lib / dpkg / lock-frontend

Notes: rm follows the path behind you to get such as I have here is (  / var / lib / dpkg / Lock-frontend  )

 

 

Guess you like

Origin www.cnblogs.com/Hannibal-2018/p/11540349.html