[sudo] password for mohamed: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Asked
Active
Viewed 219 times
-1
-
It mostly occurs when you are installing some packages and force quit in between, try logging out and then login again. – Abhishek Prakash Apr 01 '18 at 07:52
1 Answers
0
1)run ps -aux command Find the process with apt as in their name and kill those processes using kill -9 process-id
2) Remove that lock file using rm commnad.. -i recommended to do first method

Ahmed Faizan
- 11
- 3