centos7.5英文环境切换到中文环境,再切回中文环境后 ,terminal不能用

1.查看系统日志

less /var/logs/message

May 12 21:54:41 localhost python: SELinux is preventing /usr/libexec/ibus-x11 from read access on the file /usr/share/themes/Ant/gtk-3.20/gtk.css.#012#012*****  Plugin catchall
 (100. confidence) suggests   **************************#012#012If you believe that ibus-x11 should be allowed read access on the gtk.css file by default.#012Then you should re
port this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# ausearch -c 'ibus-x11' --raw | audit2a
llow -M my-ibusx11#012# semodule -i my-ibusx11.pp#012
May 12 21:54:41 localhost journal: Exiting
May 12 21:54:51 localhost journal: Locale not supported by C library.#012#011Using the fallback 'C' locale.
May 12 21:54:51 localhost org.gnome.Terminal: Locale not supported.
May 12 21:54:51 localhost org.gnome.Terminal.desktop: Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 9
看报错确实是语言环境问题

2.把语言环境调整过来

Applications----->System Tools----->Setting--->Region &Language

确保 "Language" 和"Formats"是对应的,比如,Language是English的话,Formats也一定要是English才行,不管你是美式英语还是英式英语


3.设置好后重启电脑就恢复正常

猜你喜欢

转载自www.cnblogs.com/liangjiongyao/p/9031441.html
今日推荐