Is the matrice $A^2-A+I$ invertible?
$A^2=A-I /\cdot A$
$ A^3 = A^2 - A$
$A^2=A$
Thus I conclude that $\lambda=0$ is one of the eigenvalues of this matrice and it isn't invertible, my conclusion comes from the fact that the eigenvalues of the matrices $A,A^2,...$ are all connected, and if $A^3=O$ that means that those two have the same eigenvalues.