apt and dpkg

NO_PUBKEY Debian Wiki's answer

md5sum mismatch

Try linking to a different mirror, see here for the list. Change the mirror here: vi /etc/apt/sources.list

Binaries

High Level Package Tools

  1. dselect
  2. aptitude
  3. synaptic

Links

Unoffical Apt Source
search
Quick Reference

apt

apt-get install <package-name>
apt-get install -f
Force an install
apt-get upgrade -f
Force an upgrade

dpkg

dpkg --install <package-file-name.deb>
dpkg --install --force-???? <package-file-name.deb>
This allow you to specify specific things to force and is much more powerful than the apt-get --force-yes option)
dpkg --force-help
provides a list of the things you can force
dpkg -S <file>
Identify which packages contain <file>
dpkg -r <package>
Removes an installed package named <package>
dpkg -l
Lists all installed packges

Sources

apt

Notes1:
apt-get source <package-name>
First go to the directory where you want the source (Its probably better to create a directory as a number of files/directories are downloaded)
Notes2:
apt-get source -b
# Modifying Source (if needed)
dpkg-source -x
cd
fakeroot dpkg-buildpackage -b -us