gnome-terminal 不工作可能是因为区域设置 [英] gnome-terminal doesn't work maybe because of locale setting

查看:45
本文介绍了gnome-terminal 不工作可能是因为区域设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在日文环境中安装了 Antergos(Arch 的简易版).但我想把语言改成英语,所以我参考了维基文章然后运行一些取消注释 /etc/locale.gen 中的 #en_US.UTF-8 UTF-8 后的命令并将 /etc/locale.conf 编辑为以下内容:

I installed Antergos (easy version of Arch) with the Japanese environment. But I wanted to chaned the language to English, so I reffer the wiki article then run some commands after uncomment #en_US.UTF-8 UTF-8 in /etc/locale.gen and edit /etc/locale.conf into following:

LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

问题从这里开始.

我重新启动了计算机,发现 gnome-terminal 不起作用.我在 Emacs 上替换了 eshell 并运行 gnome-terminal 命令,然后收到错误消息:

I restarted my computer and found that gnome-terminal doesn't work. I substituted eshell on Emacs and run gnome-terminal command, then got error messages:

(process:1202): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
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 8

locale 命令的输出如下:

locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=ja_JP.utf8
LC_TIME=ja_JP.utf8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=ja_JP.utf8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=ja_JP.utf8
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=ja_JP.utf8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

是什么将区域设置的某些部分更改为日语?还是存在其他终止 gnome-terminal 的原因?

What changes some part of locale setting into Japanese? Or other reasons which terminate gnome-terminal exist?

我已经尝试过这里推荐的解决方案 https://bbs.archlinux.org/viewtopic.php?id=180103 .

I have tried solutions sugestted here https://bbs.archlinux.org/viewtopic.php?id=180103 .

谢谢.

推荐答案

我前段时间遇到了同样的问题.我修复了运行此命令的语言环境配置

I had the same problem some time ago. I fixed my locale config running this command

sudo localedef -f UTF-8 -i en_US en_US.UTF-8

这篇关于gnome-terminal 不工作可能是因为区域设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆