I was reading about the Four color theorem and discovered that it took so many years to prove the theorem with many proof attempts that led to failures.
In fact, it is stated here that:
One attempted proof, given in 1879 by Alfred Kempe, was believed to be correct until Percy Heawood showed in 1890 that it was flawed; another proof, proposed in 1880, was shown to be incorrect in 1891. The first correct proof was given in 1976 by Kenneth Appel and Wolfgang Haken.
...
Since then the proof has been regenerated in several different ways, and simplified to some extent, but no one has yet been able to produce a proof that is simple enough and clear enough for any person to comprehend. For this reason there is still some doubt among some mathematicians about the correctness of Appel and Haken's proof, though most mathematicians accept the proof as valid.
So, do you know any similar situation like this? Or, alternatively, do you know any problem that is known to take so many years to solve (even though the correct proof is very long and complicated as for the four-color theorem) but with many proof attempts that led to failures?