PS4 for sale update error

Hello I have my Ps4 in need of repair for sale. I have tried all of the troubleshooting I could but it seems there is a problem with the ribbon cable to the harddrive that i cannot figure out. Every time it tried to update it sends error codes but otherwise a very clean console taken good care of for many years.