Default [Q] HTC One update problems


I have just bought a used HTC One running Android 4.1.2. It say there's an update available (2.24.401) which will bring it to 4.2.2 but I have trouble installing it.

The problem might be that the phone is already rooted and has TWRP installed. I have only very little experience with rooting and recovery tools

Anyway ... what happens is that I tell it to update and it restarts the phone. Instead of just rebooting it then enters TWRP and from then on I'm lost. I can get TWRP to reboot as system but after doing so the update is still not installed.

Is there anything I can do to get the update installed ?