dpkg-configure 中的错误:在任何已知目录中都找不到文件“symbols/u”

dpkg-configure 中的错误:在任何已知目录中都找不到文件“symbols/u”

apt-get升级到vivid之后,每次操作或者直接运行时都会出现这个错误sudo dpkg --configure -a

Setting up keyboard-configuration (1.108ubuntu5) ...
Error loading new keyboard description
/usr/bin/ckbcomp: Can not find file "symbols/u" in any known directory
dpkg: error processing package keyboard-configuration (--configure):
 subprocess installed post-installation script returned error exit status 1

随之而来的是一系列依赖性问题,如下:

dpkg: dependency problems prevent configuration of console-setup:
 console-setup depends on keyboard-configuration (= 1.108ubuntu5); however:
  Package keyboard-configuration is not configured yet.

dpkg: error processing package console-setup (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kbd:
 kbd depends on console-setup | console-setup-mini; however:
  Package console-setup is not configured yet.
  Package console-setup-mini is not installed.

总而言之,以下软件包尚未配置:

Errors were encountered while processing:
 keyboard-configuration
 console-setup
 kbd
 console-setup-linux
 ubuntu-minimal
 xserver-xorg-core
 xserver-xorg-input-evdev
 xserver-xorg-input-mouse
 xserver-xorg-input-vmmouse
 xserver-xorg-input-synaptics
 xserver-xorg-input-wacom
 xserver-xorg-input-all
 xserver-xorg
 xorg
 ubuntu-desktop
 xserver-xorg-video-r128
 xserver-xorg-video-mach64
 xserver-xorg-video-radeon
 xserver-xorg-video-ati
 xserver-xorg-video-cirrus
 xserver-xorg-video-fbdev
 xserver-xorg-video-intel
 xserver-xorg-video-mga
 xserver-xorg-video-neomagic
 xserver-xorg-video-nouveau
 xserver-xorg-video-openchrome
 xserver-xorg-video-savage
 xserver-xorg-video-siliconmotion
 xserver-xorg-video-sisusb
 xserver-xorg-video-tdfx
 xserver-xorg-video-trident
 xserver-xorg-video-vesa
 xserver-xorg-video-vmware
 xserver-xorg-video-all
 xserver-xorg-video-qxl
E: Sub-process /usr/bin/dpkg returned an error code (1)

我不知道我是否对相关文件进行了任何手动更改或安装了其中任何替代版本。不过,我开始使用的基本系统(14.04 LTS)是笔记本电脑预装的,可能包含 Tuxedo 的供应商修改。

有什么提示可能导致这些失败的原因吗?谷歌搜索ckbcomp错误消息没有找到答案。

答案1

试试这个,应该可以解决你的问题:

sudo apt-get 删除键盘配置
sudo apt-get 安装键盘配置

sudo apt-get 更新
sudo apt-get 升级

答案2

我也遇到了这个问题。我找到了两种解决方法。

首先尝试:

使用您喜欢的编辑器打开该文件/etc/default/keyboard并将的值更改XKBLAYOUT"us"

如果这没有帮助,请尝试以下操作:

sudo -i
cd /usr/share/X11/xkb/symbols
ln -s us u

相关内容