Ubuntu18.04 solves the problem of E: unable to obtain lock /var/lib/dpkg/lock - open (11: resource temporarily unavailable)

method

There are mainly two ways to solve this problem on the Internet, I will refer to the following

Solve the problem of ubuntu16.04 'E: unable to obtain lock /var/lib/dpkg/lock-frontend - open (11: resource temporarily unavailable)'
https://blog.csdn.net/qq_38019633/article/details/84024309

Ubuntu18.04 solves the problem of E: Unable to obtain the lock /var/lib/dpkg/lock - open (11: The resource is temporarily unavailable)
https://blog.csdn.net/father_is_/article/details/103114164?utm_medium=distribute. pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link

But it didn't solve my problem, and the system still reported the original error. At this time, I suddenly want to restart the virtual machine, and then execute the command after the restart is complete:

sudo apt-get install net-tools

Then it works! surprise!
insert image description here

Supongo que te gusta

Origin blog.csdn.net/DCJwwh/article/details/128609702
Recomendado
Clasificación