Adding error reporting to aptpkg.upgrade.

Adding error reporting to aptpkg.upgrade.  Per #13869