Skip to main content


sudo apt-key adv --keyserver hkp:// --recv C0A52C50

Relevant part hkp://xxx:80#

title: APT - Error GPG Key

category: Linux#

When updating repository and get the error below, add the key based on last 8 characters:

Reading package lists... DoneW: GPG error: stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9A2F76A9D1A0061W: You may want to run apt-get update to correct these problems


sudo apt-key adv --keyserver --recv-keys 9D1A0061sudo apt-get update

title: APT - Hash Mismatch

category: Linux#

sudo rm -rf /var/lib/apt/lists/*sudo apt cleansudo apt update


title: APT - Hold Unhold

category: Linux#

sudo apt-mark hold <package>sudo apt-mark unhold <package>

title: APT - Old Ubuntu Repo

category: Linux#

To access old Ubuntu repositories, take a look at

Edit etc/apt/sources.list and change CODENAME to your distribution's code name, e.g. jaunty:

deb CODENAME main restricted universe multiversedeb CODENAME-updates main restricted universe multiversedeb CODENAME-security main restricted universe multiverse#Optional#deb CODENAME-backports main restricted universe multiverse


title: APT - Timeout

category: Linux#

/etc/apt/apt.conf.d/99timeoutAcquire::http::Timeout "10";Acquire::ftp::Timeout "10";