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 220.127.116.11 m7wls, which you can get from the TWRP website if you google TWRP 18.104.22.168 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-22.214.171.124-m7wls.img
adb push XXXX.zip /data/media