I don’t think it was meant as a solution, just a correction of something another person here advised to do wrongly.
If I had to guess, I’d say you previously installed some tools from outside the kali repositories and ignored warnings about incompatibilities, thus resulting in this unstable state right now.
If that’s the case, either carefully and meticulously undo what you did before, if you still have log files about it - or install kali anew.