Interim Libyan prime minister Abdullah al-Thani announced the end Wednesday to the country's oil crisis, saying the authorities had regained control of two oil terminals that had been blocked by rebels.