I've a question that asks me to find an $x$ such that $$ x^e \equiv y \mod p^2 $$ and I know that $$ x_1^e \equiv y \mod p $$ where $1 \leq x_1 \leq p-1$ and $e$ is a positive integer.
My attempt
We have $ y = x_1^e -pk $ for a fixed $k$.
Also, we know that $ y = x^e - pk' $ for an arbitrary $k'$.
Hence, we can compute $x$ as $$ x = \sqrt[e]{x_1^e + p(k - pk')}$$ by giving an arbitrary integer to $k'$.
I feel my solution is wrong but can't really see why. Any help is much appreciated.