How to check if dpkg is already running?

Description

Cannot proceed with scan/deployment since dpkg is locked. You can see the error message Unable to proceed since dpkg is being used by some other process during a scan or deployment process. The following are the possible reasons:

  • The user might have initiated a software installation at his end.
  • The user could have run commands based on dpkg.
  • The automatic updates for Debian based flavors could be running.

Steps

The following steps will help in resolution:

  1. Wait for the user to complete software installation.
  2. Check if the files /var/lib/dpkg/lock and /var/lib/dpkg/lock-frontend are empty. If it is not empty, then dpkg is being used by some other process. You can either wait for the process to complete or kill it and proceed with scan/deployment.
  3. Disable automatic updates for Debian based flavors.

Kindly contact support for any queries.