fix error handling on Debian update

on Debian, update must succeed in order to upgrade to properly run (otherwise upgrade will run, update nothing and return 'success').