Libya has asked the UN Security Council to lift an arms embargo so that it can deal with the Islamic State (IS) group and other militants.
Foreign Minister Mohammed al-Dairi said that it would help the government build its army and deal with “rampant terrorism”.
Egypt said it supported Libya’s request at an emergency session of the UN council on Wednesday.
Rival militias have been battling for control in Libya since 2011.
The worsening security situation has increased fears that the country’s warring militias may side with IS militants.
Mr Dairi said Libya needed a “decisive stance” from the international community to be able to tackle the threat.
“If we fail to have arms provided to us, this can only play into the hands of extremists,” he said.
Libya has been under an arms embargo since the 2011 uprising that drove out the former leader, Col Muammar Gaddafi.
Egypt’s Foreign Minister Sameh Shoukry said he supported the lifting of the embargo as events in Libya posed an “enormous danger”.
He also called for a naval blockade on arms heading to areas of Libya that were not in the control of the internationally recognised Tobruk government.
The BBC’s Nick Bryant in New York says that both Egypt and Libya seemed to have stepped back from earlier requests for a UN mandate that would allow an international force to battle IS on Libyan soil.
Our correspondent says that Western diplomats will have strong reservations about lifting the arms embargo because of fears that weapons could fall into the hands of militia groups.
On Monday, Egyptian forces bombed alleged IS targets in Libya after the release of a video that appeared to show IS militants beheading 21 Egyptian Coptic Christians.
The kidnapped Egyptian workers had been seized in separate incidents in January and December from the coastal town of Sirte in eastern Libya, which is under the control of Islamist groups.
Egypt’s President Abdel Fattah al-Sisi has called for a UN resolution allowing international forces to intervene in Libya.
Egyptian officials have also suggested that a US-led bombing campaign against IS in Syria and Iraq could be extended to Libya.
On Thursday, Qatar recalled its ambassador to Egypt for consultations over the air strikes on Libya, state media said.
Qatar had expressed reservations about supporting a clause in an Arab League resolution welcoming the strikes, a stance that reportedly prompted Egypt’s delegate to the League, Tariq Adel, to accuse Qatar of supporting terrorism.
The deepening crisis in Libya has also alarmed Italy, its former colonial power. A video released this week by IS-linked militants contained a threat to Italy.
The Italian government has also attributed a recent spike in the flow of migrants trying to cross the sea into Europe to the worsening situation in Libya.
Italian Foreign Minister Paolo Gentiloni said, in a special address to parliament, that Italy would be ready to help monitor a potential ceasefire in Libya and help train its national army.
But, he added, this could only happen under the auspices of a broader, internationally agreed ceasefire.
Libya has two rival governments – one based in Tripoli, the other in Tobruk.
On Wednesday, a military jet reportedly conducted an air strike on an airport in the town of Zintan, which is controlled by the internationally recognised government.
Officials told the Reuters news agency that the attack had been ordered by the Tripoli-based authorities. There were no reports of casualties.