Mr. Mubarak has ruled Egypt for nearly 30 years .