What is the usual cause of this error?
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1873 (unattended-upgr)
- Another package manager is running
- The disk holding /var has filled up
- The user lacks sudo membership
- A repository key has expired
dpkg allows one writer at a time; here unattended-upgrades holds the lock, so wait for it to finish.
Play Linux CLI ▸