This error message is fairly common on any Ubuntu or any other Debian based Linux system.
The meaning of the Could not get lock
message is rather simple. At the time you attempt to install new software or update your operating system, there is another software installation or software upgrade underway which runs in the background and was launched on another remote or local terminal by other user with administrative privileges.