Dear Maintainer,
After a recent apt-get upgrade, dist-upgrade and reboot I noticed my
keyboard settings were reverted to their defaults.
I keep these settings in /etc/default/keyboard, and since I have
/etc under git (via etckeeper), I can show the change autocommited by
the upgrade:
# cd /etc && git diff a7d7c52 dd9bba3 -- default/keyboard
diff --git a/default/keyboard b/default/keyboard
index 5589b6f..d72a57a 100644
--- a/default/keyboard
+++ b/default/keyboard
@@ -7,9 +7,9 @@
# /etc/init.d/console-setup.sh
XKBMODEL="pc105"
-XKBLAYOUT="us,hu"
+XKBLAYOUT="us"
# parallel list to XKBLAYOUT
-XKBVARIANT=",102_qwerty_dot_nodead"
-XKBOPTIONS="grp:alt_shift_toggle,lv3:ralt_switch,terminate:ctrl_alt_bksp"
+XKBVARIANT=""
+XKBOPTIONS="lv3:ralt_switch,terminate:ctrl_alt_bksp"
BACKSPACE="guess"
# git show --oneline dd9bba3 | head -1
dd9bba3 committing changes in /etc made by "apt-get upgrade"
The upgrade did not prompt me about changes to this file under /etc,
its content was silently changed.
Please note that the whole file was not replaced (for example a comment of
mine was retained), rather it was edited.
I was trying to find which package the /etc/default/keyboard conffile
belongs to (my best guess being console-setup), however I found that on
my system no package claims this conffile - I believe this may be part
of the root cause:
# egrep -H /etc/default/keyboard /var/lib/dpkg/info/*.conffiles
[no output]
However the man pages keyboard(5) and setupcon(1) make me believe this
conffile actually belongs to console-setup.
Now I manually restored my previous keyboard settings,
however I believe the change to this config file should not have been silent.
Please let me know if I should collect other information about my system.
Thanks in advance,
Bence Romsics
Excerpt from /var/log/dpkg.log during the upgrade:
2021-02-25 15:15:50 upgrade console-setup-linux:all 1.195 1.201
2021-02-25 15:15:50 status half-configured console-setup-linux:all 1.195
2021-02-25 15:15:50 status unpacked console-setup-linux:all 1.195
2021-02-25 15:15:50 status half-installed console-setup-linux:all 1.195
2021-02-25 15:15:52 status unpacked console-setup-linux:all 1.201
2021-02-25 15:15:52 upgrade keyboard-configuration:all 1.195 1.201
2021-02-25 15:15:52 status half-configured keyboard-configuration:all 1.195
2021-02-25 15:15:52 status unpacked keyboard-configuration:all 1.195
2021-02-25 15:15:52 status half-installed keyboard-configuration:all 1.195
2021-02-25 15:15:52 status unpacked keyboard-configuration:all 1.201
2021-02-25 15:15:52 upgrade console-setup:all 1.195 1.201
2021-02-25 15:15:52 status half-configured console-setup:all 1.195
2021-02-25 15:15:52 status unpacked console-setup:all 1.195
2021-02-25 15:15:52 status half-installed console-setup:all 1.195
2021-02-25 15:15:53 status unpacked console-setup:all 1.201