if installing a remote apk fails, uninstall/rm and retry (fix #2188)