Skip to content
ohsudo, Home

Tags

#apt

dpkg was interrupted
Linux

apt "dpkg was interrupted, you must manually run dpkg --configure -a": finish what was started

Fix apt "E: dpkg was interrupted, you must manually run sudo dpkg --configure -a": run it, then fix what stops it: a full disk, broken packages or a failing script.

Beginner · 3 min read

NO_PUBKEY
Linux

apt "GPG error: NO_PUBKEY": add the key the right way, without apt-key

Fix apt "GPG error: The following signatures couldn't be verified: NO_PUBKEY": add the vendor's key to /etc/apt/keyrings with signed-by, and why apt-key is gone.

Intermediate · 4 min read

Unable to locate package
Linux

apt "E: Unable to locate package": update, enable the component, or find its real name

Fix apt "E: Unable to locate package": run apt update, enable universe or contrib, find the right package name, add the vendor's repository, and handle Docker images.

Beginner · 4 min read

E: Could not get lock /var/lib/dpkg/lock-frontend
Linux

"E: Could not get lock /var/lib/dpkg/lock-frontend": what is holding apt, and what to do

Fix "Could not get lock /var/lib/dpkg/lock-frontend" on Ubuntu and Debian: find the process holding it, wait safely, and repair an interrupted dpkg.

Beginner · 3 min read