Fixed error message if updating package lists failed
Properly remove package archives upon success