apt アップグレードが kbd と console-setup で停止する

apt アップグレードが kbd と console-setup で停止する

通常は X を実行しない ssh ターミナル セッション経由でリモート マシンをアップグレードしようとすると、次のような結果になります。

$ sudo apt upgrade 
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 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.108ubuntu15.5) ...
Couldn't interpret _XKB_RULES_NAMES property
Use defaults: rules - 'base' model - 'pc105' layout - 'us'
Error loading new keyboard description
bin/setupcon: 803: bin/setupcon: bin/../bin/ckbcomp: not found
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.108ubuntu15.5); 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.

dpkg: error processing package kbd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of console-setup-linux:
 console-setup-linux depends on kbd (>= 1.15-1ubuntu3); however:
  Package kbd is not configured yet.
 console-setup-linux depends on keyboard-configuration (= 1.108ubuntu15.5); however:
  Package keyboard-configuration is not configured yet.

dpkg: error processing package console-setup-linux (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 keyboard-configuration
 console-setup
 kbd

うーん、このメッセージはどこCouldn't interpret _XKB_RULES_NAMES propertyから来たのか、そしてそれは重要なことなのかな?

おそらく/etc/default/keyboardそれが問題でしょうか?

$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"

それは問題ないように見えました。ここで再び問題があります:

$ setxkbmap en
Couldn't interpret _XKB_RULES_NAMES property
Use defaults: rules - 'base' model - 'pc105' layout - 'us'
Error loading new keyboard description

提案はありますか?

答え1

私がこの問題を解決した方法は次のとおりです。アンインストールすると、何らかの理由で問題が解決perlしました。

sudo apt remove perl keyboard-configuration console-setup-linux console-setup kbd
sudo apt autoremove
sudo apt autoclean
sudo apt install perl
sudo apt install -f
sudo apt upgrade
sudo apt upgrade -f
sudo apt autoremove
sudo apt autoclean

関連情報