AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1137837
Accepted
mature
mature
Asked: 2019-04-25 11:52:43 +0800 CST2019-04-25 11:52:43 +0800 CST 2019-04-25 11:52:43 +0800 CST

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

  • 772

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 upgrade dpkg dependencies 18.04
  • 1 1 个回答
  • 951 Views

1 个回答

  • Voted
  1. Best Answer
    mature
    2019-04-29T09:44:58+08:002019-04-29T09:44:58+08:00

    正如我之前所说,命令:

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

    将问题减少到keyboard-configuration错误。

    现在我执行以下步骤:

    1. 运行输入法应用程序:

    输入法应用

    1. 选择更新Yes按钮:

    在此处输入图像描述

    1. 删除配置:

    在此处输入图像描述

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

    在此处输入图像描述

    1. 在命令行中运行:sudo apt update和sudo apt upgrade.
    • 0

相关问题

  • 在自定义安装以维护升级路径时,应遵循哪些准则?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

  • 从 8.04 LTS 升级到 10.04 LTS 的体验?

  • 分销升级的合理途径

  • 在不使用标准升级系统的情况下升级有哪些替代方案?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve