Note I am not a developer so I am not sure if this could make things worse ( I don't see how it would but I would like a second opinion from someone more knowledgeable ) but if someone either has a spare machine they can replicate this problem on or someone confirms that this is safe could you run:
"sudo sh -x /usr/sbin/locale-gen > stdout.txt 2> stderr.txt"
And attaching the two files, this should tell the exact point where the script is stalling ( or stuck in a loop, or whatever the problem is )
Note I am not a developer so I am not sure if this could make things worse ( I don't see how it would but I would like a second opinion from someone more knowledgeable ) but if someone either has a spare machine they can replicate this problem on or someone confirms that this is safe could you run:
"sudo sh -x /usr/sbin/ locale- gen > stdout.txt 2> stderr.txt"
And attaching the two files, this should tell the exact point where the script is stalling ( or stuck in a loop, or whatever the problem is )