Ubuntu 18.04 LTS,GNOME 3.28.2
当我尝试从控制台升级它时,收到:
~$ sudo apt update
...
~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up keyboard-configuration (1.178ubuntu2.8) ...
Error loading new keyboard description
/usr/bin/ckbcomp: Can not find file "symbols/layout" in any known directory
dpkg: error processing package keyboard-configuration (--configure):
installed keyboard-configuration package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of console-setup-linux:
console-setup-linux depends on keyboard-configuration (= 1.178ubuntu2.8); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup-linux (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of console-setup:
console-setup depends on console-setup-linux | console-setup-freebsd | hurd; however:
Package console-setup-linux is not configured yet.
Package console-setup-freebsd is not installed.
Package hurd is not installed.
console-setup depends on keyboard-configuration (= 1.178ubuntu2.8); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
keyboard-configuration
console-setup-linux
console-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)
从 AskubUntu 搜索解决方案我发现并尝试了几个命令,例如:
~$ sudo dpkg --configure -a
~$ sudo dpkg --configure -a --force-depends
结果,我将错误减少到单个Errors while processing: keyboard-configuration
:
~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up keyboard-configuration (1.178ubuntu2.8) ...
Error loading new keyboard description
/usr/bin/ckbcomp: Can not find file "symbols/layout" in any known directory
dpkg: error processing package keyboard-configuration (--configure):
installed keyboard-configuration package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
keyboard-configuration
E: Sub-process /usr/bin/dpkg returned an error code (1)
如何解决此keyboard-configuration
错误?
正如我之前所说,命令:
将问题减少到
keyboard-configuration
错误。现在我执行以下步骤:
sudo apt update
和sudo apt upgrade
.