Use DEBIAN_FRONTEND=noninteractive to bypass prompts.
(Ctrl+Alt+T).
The error message essentially means that dpkg was caught "mid-stream." It was in the middle of installing or configuring a package, and the process was stopped abruptly. Because the database that tracks your installed software was left in an inconsistent state, dpkg locks itself to prevent further damage to your system. Use DEBIAN_FRONTEND=noninteractive to bypass prompts
Run the command:
: Tells dpkg to configure any unpacked but unconfigured packages. Because the database that tracks your installed software
This completes any pending package configuration.
The error message itself provides the solution: running sudo dpkg --configure -a . This command configures all pending packages and resolves any issues with the package database. The error message itself provides the solution: running
Inside top , press Shift + P to sort by CPU usage, or Shift + M to sort by memory. Note any unfamiliar or unexpected processes. If you find a process eating resources, you can kill it from top by pressing k , typing its PID, and sending signal 15 (SIGTERM).