LIBYA'S Prime Minister Abdullah al-Thinni and his cabinet have been sworn into office after lawmakers approved the line-up but will struggle to rule a country where a rival parliament sits in the capital Tripoli.

Libya is struggling with anarchy as two governments compete for legitimacy three years after Muammar Gaddafi was ousted.

The elected House of Representatives and senior officials moved to the eastern city of Tobruk after an armed group from the western city of Misrata seized the capital and set up a rival assembly and cabinet.

Last week the House of Representatives, which is recognised by the inter­national community, agreed on a second cabinet list after rejecting an initial 16-member line-up as too large.

The new cabinet has 13 ministers including three deputies for Mr Thinni and no oil minister. The vital oil sector will be run by state firm National Oil Corp, as under Gaddafi.

Mr Thinni, a former career soldier, has been prime minister since March.