KDE中文设置

本文详述了在KUbuntu22.10中如何设置中文支持,包括安装基础中文包、选择Fcitx5或IBus作为输入法,并解决了两者可能存在的冲突问题,以确保在各种应用程序中能正常使用中文输入。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

KDE 中文设置

KDE(本文使用KUbuntu22.10)在完成安装之后不会自动安装完整的中文语言支持,本人收集整理了 KDE 中文的一些配置方法,在此笔记备忘。

准备工作

确保你已经可以连接到KDE的软件源并刷新apt缓存。
/etc/apt/source.list

# deb cdrom:[Kubuntu 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809.1)]/ jammy main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb https://mirror.bjtu.edu.cn/ubuntu/ jammy main restricted
deb-src https://mirror.bjtu.edu.cn/ubuntu/ jammy main universe multiverse restricted #Added by software-properties
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb https://mirror.bjtu.edu.cn/ubuntu/ jammy-updates main restricted
deb-src https://mirror.bjtu.edu.cn/ubuntu/ jammy-updates main universe multiverse restricted #Added by software-properties
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb https://mirror.bjtu.edu.cn/ubuntu/ jammy universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jammy universe
deb https://mirror.bjtu.edu.cn/ubuntu/ jammy-updates universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jammy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb https://mirror.bjtu.edu.cn/ubuntu/ jammy multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jammy multiverse
deb https://mirror.bjtu.edu.cn/ubuntu/ jammy-updates multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb https://mirror.bjtu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirror.bjtu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse #Added by software-properties
# deb-src http://cn.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb https://mirror.bjtu.edu.cn/ubuntu/ jammy-security main restricted
deb-src https://mirror.bjtu.edu.cn/ubuntu/ jammy-security main universe multiverse restricted #Added by software-properties
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb https://mirror.bjtu.edu.cn/ubuntu/ jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb https://mirror.bjtu.edu.cn/ubuntu/ jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

/etc/apt/source.list.d/neon.list

# Neon 用户的额外源
deb https://mirrors.bfsu.edu.cn/kde-neon/user jammy main
# deb-src https://mirrors.bfsu.edu.cn/kde-neon/user jammy main

最后使用aptpkcon更新缓存和软件

安装中文支持

基础中文包

sudo apt install language-selector-gnome
# Ubuntu 官方语言配置工具
sudo apt install language-pack-gnome-zh-hans language-pack-kde-zh-hans language-pack-zh-hans
# 分别安装KDE和GNOME的中文语言支持
# 注意,即使使用的是KDE桌面,但是大概率是会同时使用GTK开发的软件,例如CANONICAL开发的部分软件
# 所以也安装GTK的中文支持

如果你选择了从源码编译部分软件,例如 krita 你可能需要安装更多的中文包
sudo apt install krita

输入法

Fcitx5

安装输入法

sudo apt install fcitx5 fcitx5-pinyin
IBus

安装输入法

sudo apt install ibus ibus-pinyin

Fcitx5 可能不会在GIMP等程序中正常工作,IBus也可能在IDEA中出现问题

完成上述步骤后,在终端键入gnome-language-selector启动语言配置工具,按照提示自动补全语言支持
最后,重启系统

修正

Fcitx5 和 IBus

经过作者自身测试,两者确实存在一些冲突,所以不建议同时安装两个输入系统(除非你对可能的问题已经做好准备),另外,GNOME Language Selector 可能会安装Fcitx5输入系统,对于使用IBus和用户,应该使用

sudo apt remove "fcitx5*"

来卸载Fcitx5输入系统,尽管 GNOME Language Selector 可能会报告语言支持不完整。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值