本帖最后由 lulugl 于 2024-12-9 14:22 编辑

【前言】
在debian桌面系统中,默认是没有安装中文输入法的,在查找中文输入法的安装中,折腾了好久才装好,试了各种方法,最后https://wiki.debian.org/I18n/Fcitx5这里找到了解决方法。

Install Fcitx5 on bullseye

For Simplified Chinese users

Install fcitx5 and fcitx5-chinese-addons. Then logout and login again in your desktop environment. The input methods are not added to fcitx immediately. You need to configure it manually. You can run fcitx5-configtool from terminal or system tray.

apt install --install-recommends fcitx5 fcitx5-chinese-addons

Be sure to install recommended packages, it works for most people. But if you want a minimal set of packages to install, try (for KDE user):

apt install --no-install-recommends fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk3 fcitx5-frontend-qt5 fcitx5-module-xorg kde-config-fcitx5 im-config

im-config is used to automatically configure the required environment for input methods.


切换到root下执行

  1. (base) root@myd-lr3576x-debian:~# apt install --install-recommends fcitx5 fcitx5-chinese-addons<p>(base) root@myd-lr3576x-debian:~# apt install --no-install-recommends fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk3 fcitx5-frontend-qt5 fcitx5-module-xorg kde-config-fcitx5 im-config</p>
重启系统后打开fcictx配置就出现图形界面了:
image.png
配置好后,按Ctrl+空格键就可以切换输入法,效果如下:
image.png
【总结】
中文输入是必需配备的,希望能帮到大家。