依赖问题:处理时出错:键盘配置

依赖问题:处理时出错:键盘配置

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错误?

答案1

正如我之前所说,命令:

~$ sudo dpkg --configure -a
~$ sudo dpkg --configure -a --force-depends

减少问题的keyboard-configuration错误。

现在我执行以下步骤:

  1. 跑步输入法应用:

输入法应用

  1. 选择更新Yes按钮:

在此处输入图片描述

  1. 删除配置:

在此处输入图片描述

  1. 然后运行输入法再次应用程序,单击更新Yes按钮,然后现在选择我以前的设置(在我的情况下)伊布斯):

在此处输入图片描述

  1. 在命令行中运行:sudo apt updatesudo apt upgrade

相关内容