1sudo apt install fcitx fcitx-googlepinyin2sudo apt install fcitx-frontend-gtk3 fcitx-frontend-qt5 注这里第二到第六可能不需要但我成功运行了可能是等待的时间不够3im-config -n fcitx4echo -e export GTK_IM_MODULEfcitx\nexport QT_IM_MODULEfcitx\nexport XMODIFIERSimfcitx\nfcitx -d ~/.xprofile5sudo reboot6重启 -fcitx配置-输入法置顶以上代码我打完后我发现可以使用中文输入法