Updated

The U.N. envoy for Libya says he is "increasingly confident" that U.N.-brokered peace talks are in their final stages, and he is urging both sides not to squander the opportunity.

Libya has slid into chaos since the 2011 NATO-backed uprising that ended Moammar Gadhafi's four-decade reign. The country is divided between an elected parliament and government based in Tobruk and an Islamist militia-backed government in the capital, Tripoli.

Members of the Tobruk government and regional leaders signed a peace deal last month, but the Tripoli government did not.

Bernardino Leon told the U.N. Security Council on Wednesday that the agreement may not be perfect but it provides a roadmap to immediately end the country's political crisis and military conflict "that have ravaged Libya for over a year now."