Could not get lock /var/lib/apt/lists/lock. It is held by process 4389 (aptd) N: Be aware that removing the lock file is not a solution and may break your system. code example

Example 1: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

ps aux | grep -i apt

Example 2: why upgrade ubuntu then frequently shows this message "It iwating for cache lock: Could not get lock /var/lib/dpkg/lock.frontend.

It iwating for cache lock: Could not get lock /var/lib/dpkg/lock.frontend.