Premise: First update the resources when installing Docker in Ubuntu. After using the sudo apt-get update command, an error is reported:
E: Unable to obtain lock / var / lib / apt / lists / lock -open (11: resource temporarily unavailable)
E: Unable to lock the directory / var / lib / apt / lists /
Solution: Force unlock
input the command:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
Re-enter after
sudo apt-get update