How to reinstall android on my HTC I have encrypted my HTC One M7 and then entered a wrong password until destruction of data. How can I recover my HTC.

In other words, how do I reinstall Android 6.0 on it?

I tried "power button + volume lower" and then factory reset. It leads to TWRP. 

PS: I am using Linux, and have no Windows machine available
Should be able to factory reset from twrp even if you can't decrypt it. On the flip side, I know HTC devices have RUU's wich allow to install factory images etc.