Libya's prime minister says the United Nations is trying to impose an unworkable agreement on the country's various factions that is "screwing up" the political process and will never be accepted by parliament.

Abdullah al-Thinni is the head of an interim government based in eastern Libya that answers to its internationally recognized parliament. The assembly has rejected a U.N.-brokered unity government based in the capital, Tripoli.

Al-Thinni told The Associated Press on Tuesday that the two sides are deadlocked and a new U.N. initiative is underway to mend the agreement.

Western nations have rallied behind the unity government, hoping it can unify Libyan forces against an Islamic State affiliate and other extremist groups.