OS update not working, and manual flash installation not working either

If it’s not the cable, then this looks like driver trouble.
This here was done because MTP didn’t work when TWRP was booted, but it could serve as a generic driver repair …