Ok I got it all sorted out, thanks a bunch!!!! It all had to do with having the wrong kind of TWRP on here.
If anyone stumbles into this thread with the same problem I had, heres what I had to do, on ubuntu:
1.Install all the android SDK, adb, and fastboot stuff. adb and fastboot both needed me to download stuff when I tried to use them in the terminal, so I just said yes and it worked fine. Fastboot requires you to use "sudo Fastboot".
2.Boot to H-BOOT, and flash TWRP 126.96.36.199 m7wls, which you can get from the TWRP website if you google TWRP 188.8.131.52 HTC One
3. If your ROMs are gone, like mine were, use either sideboot in TWRP, or the "adb push" command in Terminal, to add them back to your storage. I put mine in /data/media. (sideboot never worked for me, adb push was way more reliable.)
4.Flash your Rom and the gapps, and you should be good to go!
The commands are easily googled, but in case you can't find them:
sudo fastboot erase cache
sudo fastboot flash recovery openrecovery-twrp-184.108.40.206-m7wls.img
adb push XXXX.zip /data/media