If you're getting "setting locale failed" messages when you're doing an upgrade on a newly-installed server, the cause is as it says - there isn't a locale to set....