Check for missing deps before attempting to install.
Use cmd.retcode for convenience and proper retcode checking.
Renamed salt.modules.apt_pkg to salt.modules.aptpkg for continuity with salt.modules.yumpkg
Merge pull request #10183 from tedski/10107_fix

Check for missing deps before attempting to install.