I have a 2011 Macbook Pro with High Sierra 10.13.6. I haven't used this computer for 2 years. When I turned it on, the drive was dead. After reinstalling the OS in an external hard drive, restoring my old backup on it (using the Recovery Partition) and booting from it, the error "macOS needs to repair your library to run applications" started appearing whenever I log in my old user account (there was only one user account on my backup). No matter whether I try to enter the password and click "Repair" nor click "Cancel", the error window pops up immediately again. Any ideas on how to fix it?
I have tried all the possibilities described in the answers of How to fix "macOS needs to repair your library to run applications" after High Sierra upgrade? . Finally, I tried erasing the drive and reinstalling the OS from scratch. I created a new account and restored my old one using the Migration Assistant, which resulted in the same error again! Now, I'm left with the option of manually moving each file from the backup account to the new one and manually setting every damn preferences and packages in my Library. So, are there any other less painful ways of obtaining an exact copy (except for the username or the password) of my old computer?
Thanks in advance.