处理“key-mapper”时遇到错误

处理“key-mapper”时遇到错误

我正在尝试在我的 Ubuntu VM(在 MacOS Big Sur 11.3.1 上运行)上设置 vulkan,并且在运行“sudo apt install vulkan-tools”时不断出现此错误。

以下是整个日志:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
vulkan-tools is already the newest version(1.2.131.1+dfsg1-1).
0 upgraded, 0 newly installed, 0 to remove and 26 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] y
Setting up key-mapper (1.0.0) ...
Failed to enable unit: Unit file key-mapper.service does not exist.
Failed to start key-mapper.service: Unit key-mapper.service not found.
dpkg: error processing package key-mapper (--configure):
 installed key-mapper package post-installation script subprocess returned error exit status 5
Errors were encountered while processing:
 key-mapper
E: Sub-process /usr/bin/dpkg returned an error code (1)

有人知道这是什么意思吗?我在 Google 上找不到太多相关信息。

答案1

我在 Ubuntu 20.04 上尝试安装 MySQL 时遇到了同样的问题。

我认为按键映射器与我们尝试执行的操作无关,所以我卸载了它,问题就解决了。按键映射器是我前段时间安装的,但从未真正使用过它。

$ sudo apt remove input-remapper  
$ sudo apt autoclean && sudo apt autoremove

相关内容