Fix locales error when installing packages