1,
https://www.cnblogs.com/ace-wu/p/6623150.html
ubuntu common errors --Could not get lock / var / lib / dpkg / lock resolved
When sudo apt-get install xxx Setup errors by the terminal:
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
This problem could be have another program is running, resulting in resources being locked unavailable. The cause of the locked resources may not be completed normally when the last run or install updates, and then this condition occurs, the solution is simple:
The following two knock in the terminal
hlp@hlp-Lenovo-G405:~$ sudo rm /var/lib/dpkg/lock
hlp@hlp-Lenovo-G405:~$ sudo dpkg --configure -a
hlp@hlp-Lenovo-G405:~$ sudo apt update
hlp@hlp-Lenovo-G405:~$ sudo apt list --upgradable