I had the same problem.
I followed this advice:
After apt removing the package running ./validate.php again installed it for me, no more error.
apt removing
./validate.php