Updated - Libyan Prime Minister Ali Zeidan arrived in Malta last night reportedly because his aircraft could not land in Tripoli for security reasons.

He was greeted at the airport by Foreign Minister George Vella.

Mr Zeidan had been on a flight from Zurich. His aircraft landed in Malta at about 8.30 p.m.

He left at 9 a.m.

The government in a statement issued after he left said the stopover was actually for technical reasons. Mr Zeidan had a short meeting with Prime Minister Joseph Muscat.

Mr Zeidan had visited Malta twice before, his last visit being for the signing of an agreement for Libya to sell oil and gas to Malta at preferential rates once production picks up.

Meanwhile, late yesterday unidentified gunmen tried to storm into the Libyan army command headquarters in Tripoli, clashing with soldiers there before stealing a few rifles and some vehicles, the army and a military source said.

The details of the incident were not clear and there were no immediate reports of any casualties at the army chief of staff headquarters in the south of Tripoli.

"We clashed with them when they tried to enter, but they left," said Ali al-Sheikhi, an army spokesman.

One army source at the base said the clash occurred at the gate of the command building and gunmen stole a few Kalashnikov rifles and at least four cars.

Nearly three years after the revolt against Muammar Gaddafi, Libya's army is still in training, and is often no match to the heavily armed former rebels and militia brigades who battled to oust him but now refuse to demobilize.

Tensions are high in Libya before the official end of the mandate of the interim parliament today. The parliament was elected into office in 2012 but has since failed to progress much in the country's transition to full democracy.

Many Libyans are divided over the future of the parliament, which voted to extend its mandate until later this year to provide some continuity while a special committee writes a new constitution for the North African country.

Two major rival militia brigades, the Zintanis and the Misratans, are allied with competing factions in the General National Congress, whose members voted to stay on until elections later this year.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.