Museveni acknowledged even he had trouble and promised to investigate.

“I put my right… thumbprint. The machine did not accept it. I put my left, it did not accept it,” he told journalists, adding that the machine finally accepted a scan of his face, allowing him to vote.

There was a heavy security presence in many areas and police have warned the vote is “not a justification for criminal acts”.

The government said the internet shutdown was needed to prevent the spread of “misinformation” and “incitement to violence”, but the United Nations called it “deeply worrying”.

The president said his vote, when it was finally cast, was for anyone “who believes in Uganda… who believes in Africa.”