One more alternate work-around: comment out the line that says "set -e". That line tells the script to exit on error whenever any regular command fails. Commenting out just this line means that the update-alternatives calls that work still get run, and those that don't work don't also cause removal to fail.
One more alternate work-around: comment out the line that says "set -e". That line tells the script to exit on error whenever any regular command fails. Commenting out just this line means that the update-alternatives calls that work still get run, and those that don't work don't also cause removal to fail.