ubuntu18.04终端(terminal)无法打开解决方法
terminal
The new Windows Terminal and the original Windows console host, all in the same place!
项目地址:https://gitcode.com/gh_mirrors/term/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 8
2、选择想要的编码:
使用命令sudo dpkg-reconfigure locales
添加一遍你想要的编码
3、去掉 export LC_ALL=C。
# 进入locale去掉export LC_ALL=C
sudo gedit /etc/default/locale
去掉之后如下图,然后重启电脑:
GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
91c96a60
This PR makes it so the path to nuget in this repo is prepended. This
will make it so the local `nuget.exe` is prioritised before looking for
nuget in `PATH`.
## Validation Steps Performed
Run `razzle.cmd`, the local instance of nuget is utilised.
Delete `nuget.exe`, `razzle.cmd` uses `nuget.exe` specificed in the
`PATH`.
Closes #1111 9 小时前
00ff803a
1 天前
更多推荐
已为社区贡献2条内容
所有评论(0)