我是一名日本学生,之前一直在 Ubuntu 20.04.1 LTS 上使用日语输入法。直到昨天它都运行正常,但今天早些时候我重启时它就停止工作了。
症状
选择日语键盘(通过 Super+Space 或从右上角的语言菜单),然后选择平假名输入(右上角的语言菜单、输入模式、平假名)。这以前在所有应用程序中都可以正常工作,但现在:
- 日语输入在 chrome、gedit 或文件浏览器中不起作用(而是使用英语)。
- 日文输入做在“活动”搜索窗口(按“Super”并输入)和运行框(Alt+F2)中操作
- 希伯来语输入法(也已配置)做到处工作。
潜在原因
查看 /var/log/dpkg.log,我看到一些最近更新的软件包:
$ cat dpkg.log | awk '/^2020-09-19 13.*status installed.*/ {print}' | sort -u
2020-09-19 13:23:26 status installed bsdutils:amd64 1:2.34-0.1ubuntu9.1
2020-09-19 13:23:27 status installed libsmartcols1:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:28 status installed libblkid1:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:28 status installed libblkid1:i386 2.34-0.1ubuntu9.1
2020-09-19 13:23:28 status installed libmount1:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:28 status installed libmount1:i386 2.34-0.1ubuntu9.1
2020-09-19 13:23:28 status installed libuuid1:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:28 status installed libuuid1:i386 2.34-0.1ubuntu9.1
2020-09-19 13:23:30 status installed util-linux:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:33 status installed alsa-ucm-conf:all 1.2.2-1ubuntu0.3
2020-09-19 13:23:33 status installed python3-click:all 7.0-3
2020-09-19 13:23:33 status installed python3-colorama:all 0.4.3-1build1
2020-09-19 13:23:34 status installed grub-common:amd64 2.04-1ubuntu26.4
2020-09-19 13:23:34 status installed im-config:all 0.44-1ubuntu1.2
2020-09-19 13:23:34 status installed libfdisk1:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:34 status installed mount:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:34 status installed rfkill:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:34 status installed uuid-dev:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:35 status installed fdisk:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:35 status installed grub2-common:amd64 2.04-1ubuntu26.4
2020-09-19 13:23:35 status installed grub-efi-amd64-bin:amd64 2.04-1ubuntu26.4
2020-09-19 13:23:35 status installed grub-pc-bin:amd64 2.04-1ubuntu26.4
2020-09-19 13:23:35 status installed initramfs-tools-bin:amd64 0.136ubuntu6.3
2020-09-19 13:23:35 status installed libblkid-dev:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:35 status installed uuid-runtime:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:38 status installed grub-pc:amd64 2.04-1ubuntu26.4
2020-09-19 13:23:38 status installed initramfs-tools:all 0.136ubuntu6.3
2020-09-19 13:23:38 status installed initramfs-tools-core:all 0.136ubuntu6.3
2020-09-19 13:23:38 status installed libmount-dev:amd64 2.34-0.1ubuntu9.1
2020-09-19 13:23:40 status installed grub-efi-amd64-signed:amd64 1.142.6+2.04-1ubuntu26.4
2020-09-19 13:23:40 status installed libc-bin:amd64 2.31-0ubuntu9
2020-09-19 13:23:40 status installed systemd:amd64 245.4-4ubuntu3.2
2020-09-19 13:23:46 status installed desktop-file-utils:amd64 0.24-1ubuntu3
2020-09-19 13:23:46 status installed gnome-menus:amd64 3.36.0-1ubuntu1
2020-09-19 13:23:46 status installed install-info:amd64 6.7.0.dfsg.2-5
2020-09-19 13:23:46 status installed man-db:amd64 2.9.1-1
2020-09-19 13:23:46 status installed mime-support:all 3.64ubuntu1
2020-09-19 13:24:02 status installed initramfs-tools:all 0.136ubuntu6.3
软件包im-config
(“输入法配置框架”)特别可疑。它已从 升级0.44-1ubuntu1.1
到0.44-1ubuntu1.2
今天。
输出im-config -m
:
default
custom
ibus
ibus
顺便说一句,运行时im-config
会显示一条关于存在手动修改的配置并阻止该工具运行的消息,其形式为~/.xinputrc
:
$ cat ~/.xinputrc
run_im fcitx
我……不记得把它放在那里,但它从三月起就一直在那里(这可能是我第一次在这个系统上配置日语键盘)。
答案1
~/.xinputrc
通过删除(这似乎是可行的)解决了这个问题im-config -n REMOVE
。谢谢你的帮助!