Governments have made many errors but there are ways out of Egypt's debt woes