700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > ubuntu不支持安装搜狗_ubuntu搜狗输入法安装失败 导致无法进入桌面

ubuntu不支持安装搜狗_ubuntu搜狗输入法安装失败 导致无法进入桌面

时间:2024-03-14 23:13:48

相关推荐

ubuntu不支持安装搜狗_ubuntu搜狗输入法安装失败 导致无法进入桌面

ubuntu出错

Error found when loading /etc/profile

script for fctix started at run_im

script for ibus started at run_im

script for auto started at run_im

script for defualt started at run_im

使用Ubuntu ,每个配置项的设置都得小心翼翼啊。系统很脆弱。

这不,我闲系统的ibus输入法不好用,安装了一个搜狗输入法,但是在安装过程中可能是自动配置出错了。导致 无法进入桌面!

webwxgetmsgimg.jpeg

看上去日志是配置文件中出错了。

/etc/profile文件 加载出错了,具体原因好像是输入法。

顺藤摸瓜

要么是刚才安装的 搜狗输入法,没有配置,导致配置失败??

先进入命令行模式tty1吧 (ctrl+alt +[F1])

输入用户名,密码 登录

进入 /etc/profile 文件

sudo vi /etc/profile

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))

# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "${PS1-}" ]; then

if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then

# The file bash.bashrc already sets the default PS1.

# PS1='\h:\w\$ '

if [ -f /etc/bash.bashrc ]; then

. /etc/bash.bashrc

fi

else

if [ "`id -u`" -eq 0 ]; then

PS1='# '

else

PS1='$ '

fi

fi

fi

if [ -d /etc/profile.d ]; then

for i in /etc/profile.d/*.sh; do

if [ -r $i ]; then

. $i

fi

done

unset i

fi

~

因为刚才安装了fctix,那把fctix 插进去好了

export XMODIFIERS=@im=fctix

export QT_IM_MODULE=fctix

export GTK_IM_MODULE=fctix

但是效果还是不行

也许是刚才安装搜狗输入法,本身fctix出错了。还是还原 ibus吧

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))

# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

export XMODIFIERS=@im=ibus

export QT_IM_MODULE=ibus

export GTK_IM_MODULE=ibus

if [ "${PS1-}" ]; then

if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then

# The file bash.bashrc already sets the default PS1.

# PS1='\h:\w\$ '

if [ -f /etc/bash.bashrc ]; then

. /etc/bash.bashrc

fi

else

if [ "`id -u`" -eq 0 ]; then

PS1='# '

else

PS1='$ '

fi

fi

fi

if [ -d /etc/profile.d ]; then

for i in /etc/profile.d/*.sh; do

if [ -r $i ]; then

. $i

fi

done

unset i

fi

~

source /etc/profile

重启电脑。。。一切完美!

image.png

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。