handle errors in the system package manager and report them correctly