Перестал работать gdm, жалуется что invalid UTF-8. Начал разбираться, выяснилось что проблема в том, что в системе в разных местах намешаны «utf8» и «UTF-8».
morse@morseworkbook ~ $ locale -a
C
POSIX
en_US
en_US.iso88591
en_US.utf8
ru_RU
ru_RU.iso88595
ru_RU.utf8
russian
morse@morseworkbook ~ $ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE=C
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
morse@morseworkbook ~ $ locale -a
C
POSIX
en_US
en_US.iso88591
en_US.utf8
ru_RU
ru_RU.iso88595
ru_RU.utf8
russian
morse@morseworkbook ~ $ cat /etc/locale.conf
LANG=ru_RU.UTF-8
LC_COLLATE=C
morse@morseworkbook ~ $ cat /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8
ru_RU ISO-8859-5
ru_RU.UTF-8 UTF-8
morse@morseworkbook ~ $ localectl
System Locale: LANG=ru_RU.UTF-8
LC_COLLATE=C
VC Keymap: ruwin_alt-UTF-8
X11 Layout: n/a