The Swedish government has replaced two of its ministers as it attempts to avoid falling entirely amid a crisis involving a leak of the data of almost all of the country’s citizens.

The information from the country’s driving licence database was made available to IT contractors in other countries, who had not undergone security clearance checks, as part of an outsourcing deal.

Swedish Prime Minister Stefan Lofven has replaced two of his ministers in an attempt to stop any more dramatic fallout. But the opposition is seeking for the government to fall entirely and for the country to have an early election.

Gadget and tech news: In pictures Show all 25 1 /25 Gadget and tech news: In pictures Gadget and tech news: In pictures Gun-toting humanoid robot sent into space Russia has launched a humanoid robot into space on a rocket bound for the International Space Station (ISS). The robot Fedor will spend 10 days aboard the ISS practising skills such as using tools to fix issues onboard. Russia's deputy prime minister Dmitry Rogozin has previously shared videos of Fedor handling and shooting guns at a firing range with deadly accuracy. Dmitry Rogozin/Twitter Gadget and tech news: In pictures Google turns 21 Google celebrates its 21st birthday on September 27. The The search engine was founded in September 1998 by two PhD students, Larry Page and Sergey Brin, in their dormitories at California’s Stanford University. Page and Brin chose the name google as it recalled the mathematic term 'googol', meaning 10 raised to the power of 100 Google Gadget and tech news: In pictures Hexa drone lifts off Chief engineer of LIFT aircraft Balazs Kerulo demonstrates the company's "Hexa" personal drone craft in Lago Vista, Texas on June 3 2019 Reuters Gadget and tech news: In pictures Project Scarlett to succeed Xbox One Microsoft announced Project Scarlett, the successor to the Xbox One, at E3 2019. The company said that the new console will be 4 times as powerful as the Xbox One and is slated for a release date of Christmas 2020 Getty Gadget and tech news: In pictures First new iPod in four years Apple has announced the new iPod Touch, the first new iPod in four years. The device will have the option of adding more storage, up to 256GB Apple Gadget and tech news: In pictures Folding phone may flop Samsung will cancel orders of its Galaxy Fold phone at the end of May if the phone is not then ready for sale. The $2000 folding phone has been found to break easily with review copies being recalled after backlash PA Gadget and tech news: In pictures Charging mat non-starter Apple has cancelled its AirPower wireless charging mat, which was slated as a way to charge numerous apple products at once AFP/Getty Gadget and tech news: In pictures "Super league" India shoots down satellite India has claimed status as part of a "super league" of nations after shooting down a live satellite in a test of new missile technology EPA Gadget and tech news: In pictures 5G incoming 5G wireless internet is expected to launch in 2019, with the potential to reach speeds of 50mb/s Getty Gadget and tech news: In pictures Uber halts driverless testing after death Uber has halted testing of driverless vehicles after a woman was killed by one of their cars in Tempe, Arizona. March 19 2018 Getty Gadget and tech news: In pictures A humanoid robot gestures during a demo at a stall in the Indian Machine Tools Expo, IMTEX/Tooltech 2017 held in Bangalore Getty Gadget and tech news: In pictures A humanoid robot gestures during a demo at a stall in the Indian Machine Tools Expo, IMTEX/Tooltech 2017 held in Bangalore Getty Gadget and tech news: In pictures Engineers test a four-metre-tall humanoid manned robot dubbed Method-2 in a lab of the Hankook Mirae Technology in Gunpo, south of Seoul, South Korea Jung Yeon-Je/AFP/Getty Gadget and tech news: In pictures Engineers test a four-metre-tall humanoid manned robot dubbed Method-2 in a lab of the Hankook Mirae Technology in Gunpo, south of Seoul, South Korea Jung Yeon-Je/AFP/Getty Gadget and tech news: In pictures The giant human-like robot bears a striking resemblance to the military robots starring in the movie 'Avatar' and is claimed as a world first by its creators from a South Korean robotic company Jung Yeon-Je/AFP/Getty Gadget and tech news: In pictures Engineers test a four-metre-tall humanoid manned robot dubbed Method-2 in a lab of the Hankook Mirae Technology in Gunpo, south of Seoul, South Korea Jung Yeon-Je/AFP/Getty Gadget and tech news: In pictures Waseda University's saxophonist robot WAS-5, developed by professor Atsuo Takanishi Rex Gadget and tech news: In pictures Waseda University's saxophonist robot WAS-5, developed by professor Atsuo Takanishi and Kaptain Rock playing one string light saber guitar perform jam session Rex Gadget and tech news: In pictures A test line of a new energy suspension railway resembling the giant panda is seen in Chengdu, Sichuan Province, China Reuters Gadget and tech news: In pictures A test line of a new energy suspension railway, resembling a giant panda, is seen in Chengdu, Sichuan Province, China Reuters Gadget and tech news: In pictures A concept car by Trumpchi from GAC Group is shown at the International Automobile Exhibition in Guangzhou, China Rex Gadget and tech news: In pictures A Mirai fuel cell vehicle by Toyota is displayed at the International Automobile Exhibition in Guangzhou, China Reuters Gadget and tech news: In pictures A visitor tries a Nissan VR experience at the International Automobile Exhibition in Guangzhou, China Reuters Gadget and tech news: In pictures A man looks at an exhibit entitled 'Mimus' a giant industrial robot which has been reprogrammed to interact with humans during a photocall at the new Design Museum in South Kensington, London Getty Gadget and tech news: In pictures A new Israeli Da-Vinci unmanned aerial vehicle manufactured by Elbit Systems is displayed during the 4th International conference on Home Land Security and Cyber in the Israeli coastal city of Tel Aviv Getty

“I have to take responsibility for the country. It wouldn’t serve Sweden to throw the country into a political crisis,” Mr Lofven told a news conference, citing the many challenges Sweden and the European Union were facing, including Brexit.

The opposition Christian Democrats and far-right Swedish Democrats said, however, they would press ahead with a no confidence vote in Defence Minister Peter Hultqvist.

If they win that vote, it could yet bring down Mr Lofven’s minority left-green government and force him to resign or call an early election.

“I will handle that if and when it happens,” Mr Lofven said, referring to the confidence motion, saying the opposition should think hard about going ahead with it.

“It is important for the members of parliament that are going to push the button ... that this is the responsibility they have taken upon themselves.”

The parties’ options are constrained by the fact that the nationalist, anti-immigrant Swedish Democrats have held the balance of power in parliament since 2010. Other parties refuse to work with them, but are unable to form majority governments without them.

The scandal involves the handling of data under a 2015 outsourcing deal between the Swedish Transport Agency and IBM Sweden. Mr Lofven admitted on Monday that his country and its citizens had been exposed to risks by potential leaks of sensitive information.

Among some of the details that could have been accessible outside Sweden were the registration numbers of most vehicles on land, air and sea in Sweden.

Whistleblowers have raised concerns that information about vehicles used by the armed forces and the police may have ended up in the wrong hands. The identities of some security and military personnel could also have been at risk, according to reports.

Magnus Hagevi, professor of political science at Linnaeus University, said the prime minister, in reshuffling his cabinet, had gone for a “middle option” to try and keep his government in place.

“What was unexpected was that Hultqvist remained in his position. That means this is not over in any way, we need to wait and see how the party leaders of the (opposition) Alliance will act,” he told Reuters.

The Swedish krona was unperturbed, trading largely unchanged against the euro after initially strengthening somewhat.

“Financial markets have taken this in their stride, and I think that will continue also going forward,” said Robert Bergqvist, SEB chief economist.

“The combination of a strong Swedish economy, a strong balance sheet, and the economic-political framework gives us protection against these political events. But there could possibly be somewhat more nervousness in the financial markets if problems around the state budget arise, so we need to keep an eye on that.”

Sweden has enjoyed an economic boom most countries in Europe would envy. Gross domestic product grew by 3.2 per cent last year and is predicted to grow by 2.4 per cent this year.