参见:https://blog.csdn.net/weixin_38883338/article/details/82153933
https://blog.csdn.net/github_39533414/article/details/85211012
ubuntu中文输入法输入不了中文
sudo vim /etc/profile
在最后添加下面语句
export XMODIFIERS=@im=ibus
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus
QT_IM_MODULE=xim
重启电脑ok