For starters: auto-updating everything before installing anything (HOMEBREW_NO_AUTO_UPDATE default 0).
Coupled with uninstalling before determining whether or not the OS version is still supported (not sure if this still can happen, or ever happened on Linux)... fun times all around.