突然无法切换键盘布局

键盘布局图标突然从我的栏中消失了,甚至我通常用来在德语和俄语布局之间切换的键盘快捷方式也停止了工作。

“文本输入”设置屏幕现在也完全无法使用 – 没有任何UI元素在那里工作。 “要使用的输入源:”列表也是空的,无法添加或删除元素。 该设置屏幕上的其他UI元素甚至无法切换。

在过去的几天里,除了更新我的系统之外,我不记得做过任何需要root权限的事情。 我当时没有这个问题。

我有Ubuntu 14.04。 如果您需要更多规格,请在评论中写下

一般

您应该能够使用以下命令显示/隐藏图标: gsettings set com.canonical.indicator.keyboard visible truegsettings set com.canonical.indicator.keyboard visible false

然而

当你按我的要求运行上面的命令时,输出是:

gsettings set com.canonical.indicator.keyboard visible true (process:9568): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code21: Cannot open dconf database: Failed to open file '/home/pavel/.config/dconf/user': Input/output error

修复

谷歌搜索,我发现这个链接 ,提到您的dconf数据库可能已损坏。

正如链接所提到的,可以通过使用以下命令删除(或者:重命名)数据库来解决:

 mv ~/.config/dconf/ ~/.config/dconf.bak