Mr. Mubarak had once appeared invincible. He had survived multiple assassination attempts, held power longer than anyone since Muhammad Ali Pasha, the founder of the modern Egyptian state, suppressed a wave of terrorism by Islamic fundamentalists and appeared even to defy the gravity of age.