xxxxxxxxxx
Ubuntu: Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 15551 (apt)
xxxxxxxxxx
sudo lsof /var/lib/dpkg/lock
or
sudo lsof /var/lib/apt/lists/lock
or
sudo lsof /var/lib/dpkg/lock-frontend
xxxxxxxxxx
It iwating for cache lock: Could not get lock /var/lib/dpkg/lock.frontend.
xxxxxxxxxx
for linux lock