How to run 'apt-get install' to install all dependencies? [duplicate]

sudo apt-get install -f

This would install any dependencies that your previous installs missed. I just corrected my teamviewer and VNC installs.


Try sudo apt-get build-dep build-essential


Have you run: $ sudo aptitude update && sudo aptitude full-upgrade before?