Military intervention in Libya is risky and foreign powers would be better off supporting a military commander based in the east, President Abdel-Fattah el-Sissi of neighboring Egypt was quoted as saying on Thursday.
A power struggle between two rival administrations in Libya has allowed Islamic State militants to gain ground there, and hardliners have held up efforts to set up a unity government.
Interviewed in the Italian newspaper La Repubblica, Sissi recommended supporting Khalifa Haftar's Libyan National Army - which is linked to the internationally recognized government based in the eastern city of Tobruk - in the fight against jihadists.
"If we give arms and support to the Libyan National Army, it can do the job much better than anyone else, better than any external intervention that would risk putting us in a situation that could get out of hand and provoke uncontrollable developments," he said.
Egypt was putting pressure on Tobruk to accept a United Nations-backed unity government, he said, and wanted all parties to take their share of responsibility.
Tobruk's administration has said it cannot vote on the unity government and the rival General National Congress in Tripoli has said it cannot hand over power.
Foreign powers can only intervene in Libya if asked to do so by a Libyan government and with a U.N. and Arab League mandate, Sissi said. The United States and European Union have said further intervention would need to be requested by Libya.
The world needs to act quickly to stabilize all countries in the region that have not yet fallen into chaos, the Egyptian leader added, to tackle threats to global security and manage the migrant crisis.
"What would happen if Europe had to manage a wave of refugees two or three times bigger than it is now?" he asked.
"This is why I say we cannot focus only on the military problem in Libya."
Sissi said five questions needed to be asked before taking military action: how to get in and out of Libya, who would re-establish the police and army, how to protect civilians during a mission, whether an intervention would meet the needs of all Libyans and who would rebuild the country physically.