Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loads of warnings if locale en_US is not installed #81

Closed
bassjoe opened this issue Jul 16, 2021 · 5 comments
Closed

Loads of warnings if locale en_US is not installed #81

bassjoe opened this issue Jul 16, 2021 · 5 comments

Comments

@bassjoe
Copy link

bassjoe commented Jul 16, 2021

If the script must depend on the locale en_US.UTF-8 (#67?) it should make sure it is installed.

If it is not present, the output is full of warnings(?) starting with file not found for line 108. While the system seems to operate normally after reboot, these messages don't promote trust in the result.

Not knowing what's the purpose of setting the locale I can't provide a fix.

Big THANKS for Rocky Linux!

sudo ./migrate2rocky.sh -r
./migrate2rocky.sh: Zeile 108: Warnung: setlocale: LC_ALL: Kann die Locale nicht ändern (en_US.UTF-8): Datei oder Verzeichnis nicht gefunden
./migrate2rocky.sh: Zeile 108: Warnung: setlocale: LC_ALL: Kann die Locale nicht ändern (en_US.UTF-8).

Removing dnf cache
Preparing to migrate CentOS Linux 8 to Rocky Linux 8.

Determining repository names for CentOS Linux 8.Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8


Found the following repositories which map from CentOS Linux 8 to Rocky Linux 8:
CentOS Linux 8  Rocky Linux 8
appstream       appstream
baseos          baseos
extras          extras

Getting system package names for CentOS Linux 8Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8
.Failed to set locale, defaulting to C.UTF-8

... and so on
@pajamian
Copy link
Collaborator

A bad assumption was that en_US would be on every machine, even if it was not the primary locale.
I think that C.UTF-8 would work better, should be on every el8 system and should not cause heaps of warnings like the above.

@suchagoodguy
Copy link

suchagoodguy commented Jul 21, 2021

dnf install -y glibc-langpack-en fixes that

@pajamian
Copy link
Collaborator

Can you test with this version, please?
https://github.com/pajamian/rocky-tools/blob/C_locale/migrate2rocky/migrate2rocky.sh

@bassjoe
Copy link
Author

bassjoe commented Aug 13, 2021

Looks good with this version, the warnings are gone.

@pajamian
Copy link
Collaborator

Pulled with #98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants