Flashing has to be done from a desktop. You didn't actually think you could overwrite a running kernel with another one, did you?