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

查看:1306
本文介绍了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不起作用. 我将eshell替换为Emacs并运行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 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天全站免登陆