[HTC 10 Guides, News, & Discussion] jollywhitefoot:
WARNINGS AND INFORMATION

This guide should let you take an OTA update after receiving the message “Can not update software: There was an unexpected error and the file system may be corrupted. Please contact HTC support for future assistance.”

UPDATE August 22, 2016: Through the great work of [MENTION=2605798]nkk71[/MENTION] and [MENTION=1162986]Captain_Throwback[/MENTION], I think it is safe to say that this method will work for any user, in any region, with any security status (S-Off/S-On). Thanks guys!

* This is a living document, so please post details of your results using this method (device variant, successful/unsuccessful).

* This will work on devices that are both s-on and s-off

I am not responsible for any damage to your device or loss of data. However, if you follow these instructions, nothing SHOULD be wiped. Keyword: SHOULD.

You're going to be flashing files here using fastboot commands. If you aren't comfortable doing that, then do not proceed. Use an RUU from HTC to return to 100% stock and then take your update.

ORIGINAL METHOD

STAGE 0 - Gather files

If you don't already know your MID, CID, and current firmware/rom versions, use "fastboot getvar all" from download mode to obtain this information.

Download TWRP System Image and Boot Image Backups for your device. These can be found for most devices in the Stock Backups thread here: http://xdaforums.com/htc-10/how-to/stock-stock-collection-recovery-ruu-ota-t3359297

Decompress zip file

Copy the entire folder to your TWRP Backup directory on your external SD card (this is going to be /TWRP/Backups/<DeviceSerialNumber>/)

Download the appropriate file below for your device. These files contain stock recovery and a customized android-info.txt that will restore your ability to download and install an OTA

1.80.206.1: HTC10_PMEUHL_1.80.206.1_StockRecovery_EraseDevInfo.zip

1.30.401.1: HTC10_PMEUHL_1.30.401.1_StockRecovery_EraseDevInfo.zip

1.80.401.1: HTC10_PMEUHL_1.80.401.1_StockRecovery_EraseDevInfo.zip

1.80.401.3: HTC10_PMEUHL_1.80.401.1_StockRecovery_EraseDevInfo.zip

1.90.401.5: HTC10_PMEUHL_1.90.401.5_StockRecovery_EraseDevInfo.zip

1.95.401.3: HTC10_PMEUHL_1.95.401.3_StockRecovery_EraseDevInfo.zip

1.95.401.4: HTC10_PMEUHL_1.95.401.4_StockRecovery_EraseDevInfo.zip

1.80.617.1: HTC10_PMEUL_1.80.617.1_StockRecovery_EraseDevInfo.zip

1.91.617.1: HTC10_PMEUL_1.91.617.1_StockRecovery_EraseDevInfo.zip

1.80.709.1: HTC10_PMEUHL_1.80.709.1_StockRecovery_EraseDevInfo.zip

1.92.709.1: HTC10_PMEUHL_1.92.709.1_StockRecovery_EraseDevInfo.zip

1.96.709.5: HTC10_PMEUHL_1.96.709.5_StockRecovery_EraseDevInfo.zip

1.98.709.5: HTC10_PMEUHL_1.98.709.5_StockRecovery_EraseDevInfo.zip

2.41.709.3: HTC10_PMEUHL_2.41.709.3_StockRecovery_EraseDevInfo.zip

1.53.710.6: HTC10_PMEUHL_1.53.710.6_StockRecovery_EraseDevInfo.zip

1.80.710.1: HTC10_PMEUHL_1.80.710.1_StockRecovery_EraseDevInfo

IF YOU NEED A DIFFERENT FILE, PLEASE POST A LINK TO THE OTA FOR THE VERSION THAT YOU NEED THE FILE FOR and I will create the file for you.

STAGE I - Restore stock System_Image backup in TWRP (Go here for more information and help with TWRP: http://xdaforums.com/htc-10/development/recovery-twrp-touch-recovery-t3358139)

Boot to recovery

If prompted, you can select to keep system read-only

From the TWRP home screen, select Mount

Place (or verify) a check in the box to Mount system as read only

Place a check next to system in the partition list to mount

Back to home screen

Select restore

Select the TWRP System Image Backup folder you copied in Stage 0

Check both System Image and Boot

Swipe to begin the restore

When the restore is complete, reboot to DOWNLOAD mode

Back to home screen

Reboot

Download

STAGE 2 - Flash Fix Zip

Type "fastboot oem rebootRUU" to reboot to RUU mode (if you are s-off you can skip this step and flash directly from download mode with the same commands as below)

Type the appropriate fastboot command: "fastboot flash zip NAMEofZIP.zip"

It will flash the rest of the firmware package, when it's finished, issue "fastboot reboot" to reboot to system

That's all there is to it.

Once back in system, try to download the OTA again.

I hope this helps.