flash doesn't work in firefox

When I try to install flash, I get an error: “An error occurred.” and the installation stops mid way.
Thanks!