Adding error reporting to aptpkg.upgrade.

Adding error reporting to aptpkg.upgrade.