ubuntu18.04终端(terminal)无法打开解决方法 |
您所在的位置:网站首页 › ubuntu右键没有终端 › ubuntu18.04终端(terminal)无法打开解决方法 |
最近在安装各种乱七八糟的开发环境,有一次重启机器后打不开ubuntu自带的终端terminal了,也就是gnome-terminal无法打开,无论是检查python版本,还是更换语言环境都不行。 原因:最后找到一个博客上的方法解决了,原因是可能之前在locale上加了LC_ALL=C,或者是编码问题。 LC_ALL=C的作用是为了去除所有本地化的设置,让命令能正确执行。 操作:1、首先安装一个其他终端,sudo apt install terminator,使用terminator启动gnome-terminal命令提示如下的错误: 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 82、选择想要的编码: 使用命令sudo dpkg-reconfigure locales添加一遍你想要的编码 3、去掉 export LC_ALL=C。 # 进入locale去掉export LC_ALL=C sudo gedit /etc/default/locale去掉之后如下图,然后重启电脑: 参考网址:https://blog.csdn.net/Mr__G/article/details/54092532 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |