Docker on Ubuntu 16.04 fails trying to lock /var/lib/apt/lists/lock

Can’t get docker-machine to create new Digital Ocean server with Ubuntu 16.04.

Clues anyone?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


This is an issue with a change to default behavior by Ubuntu. It defaults to automatic security updates, and as a result, the lock is left after create.

DO’s 16.04 image has been modified to disable this by default, so you should not see this anymore. If you do, I suggest opening a ticket directly through the “Support” section of the control panel with as much information as you can. This will let our support staff pass it along to our image team to review.