Working in Debian Jessie, I enabled Debian unstable repository (same problem with testing). Afterwards, installing cmake would throw an error:
[...]
dpkg: error while cleaning up:
subprocess rm command for cleanup was killed by signal (Aborted)
dpkg-split: loadlocale.c:129: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
[...]
After that, using the commandline is neigh impossible, since most commands, including sudo, throw their own error:
>$ ls
ls: loadlocale.c:129: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted
How can I recover from this error without shutting down the machine?
Furthermore, is this a bug in loadlocale.c? Apparently, similar issues happen all over the place:
https://github.com/junegunn/fzf/issues/356
https://www.reddit.com/r/archlinux/comments/3g9dzf/loadlocalec130_error_on_everything/
https://patchwork.openembedded.org/patch/114739/
nuXmv
; settingLANG=/usr/lib/locale/en_US
as you suggested fixed it. Is this something that would be considered an issue with my local system configuration, or an issue with the tool/project/whatever (in my casenuXmv
) that I am trying to run? (In which case I would want to submit a bug?) – Max von Hippel Sep 10 '19 at 16:43env LC_ALL=C
to your command (or exporting that variable) should work as well. – 0xC0000022L Dec 15 '20 at 15:54