apt: Report errors when installing python-apt

Instead of using the shell, which masks actual errors, run the two apt
commands with check_rc=True, which makes the module properly report
errors.