Soldiers march during a graduation ceremony for recruits of the Libyan army in Tripoli, the capital, on Jan. 16. The military, gutted by years under Moammar Gadhafi and by NATO attacks, faces multiple challenges as it tries to rebuild.