Getting rid of war is like attempting to never fight with your spouse. Lotsa luck, pal.
What you describe is human nature. History can never repeat itself because the same people and same situations never repeat. Patterns can emerge because of human nature, but for the same reason, each conflict (Armed or not) is unique.