locale-gen fails on raspberry Pi

I've tried to generate the locales on my Raspberry Pi, but i ran into a problem that i was not able to solve for a few hours. root@rpi: ~$ locale-gen Generating locales... en_US.UTF-8.../usr/bin/locale-gen: line 41: 303 Killed localedef -i $input...