--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: some packages don't depend on debconf
- From: "Lars-Daniel Weber" <fsound@gmx.de>
- Date: Thu, 29 Jan 2015 01:43:31 +0100
- Message-id: <trinity-4c69bbc8-1d88-42e5-ae57-5faaee853bbe-1422492211434@3capp-gmx-bs67>
Package: console-data
Version: 2:1.12-2 (wheezy & jessie)
Package: console-setup
Version: 1.88 (wheezy), 1.116 (jessie)
The following bug can be reproduced on Debian Wheezy and Debian Jessie, tested on AMD64.
Preamble:
I've set up a clean system via debootstrap and want to set it up using chroot. For configuring, I'd like to use debconf (the backend database, not the conference of course).
For setting up the correct keyboard on TTY (not ssh), in my case it's "de-latin1", I figured out "two and a half" way to do it the correct way with correct handling of debconf backend. I'll explain the ways and the problems below.
Helpers:
- check and fix database for consistency: /usr/share/debconf/fix_db.pl
- manual package reconfiguration: dpkg-reconfigure -plow <package>
- export of manual selections: debconf-get-selections | grep ^console > selections.txt
- import of manual selections: debconf-set-selections < selections.txt
- cleanup and purge package: apt-get purge <package>
===
Way 1: console-data
1. apt-get purge console-data console-common
2. /usr/share/debconf/fix_db.pl
3. apt-get install console-data console-common
4. dpkg-reconfigure -plow console-data
5. debconf-get-selections | grep ^console > console.txt
6. apt-get purge console-data console-common
Then I preload the manual settings to the database (with checking the DB for consistency first):
1. /usr/share/debconf/fix_db.pl
2. debconf-set-selections < console.txt
3. apt-get install console-data console-common
Result: "Looking for keymap to install: NONE"
Okay, that didn't work... Even after this didn't work: "DEBIAN_FRONTEND=noninteractive dpkg-reconfigure console-data"
===
So here's the work-around, which I call "and a half":
Way 1.5: console-data with console-common
1. echo console-common console-data/keymap/policy select Select keymap from full list | debconf-set-selections
2. echo console-common console-data/keymap/full select de-latin1 | debconf-set-selections
3. DEBIAN_FRONTEND=noninteractive dpkg-reconfigure console-data
Yep, this one works... Is this acceptable or bad a work-around?
===
Way 2: console-setup
After installing console-setup, exporting the selection and purging the package, I've preloaded the settings again:
1. debconf-set-selections <<\EOF
console-setup console-setup/codesetcode string Lat15
console-setup console-setup/codeset47 select # Latin1 and Latin5 - western Europe and Turkic languages
console-setup console-setup/fontsize-fb47 select 8x16
console-setup console-setup/fontsize string 8x16
console-setup console-setup/charmap47 select UTF-8
console-setup console-setup/store_defaults_in_debconf_db boolean true
console-setup console-setup/fontsize-text47 select 8x16
console-setup console-setup/fontface47 select VGA
keyboard-configuration keyboard-configuration/unsupported_config_layout boolean true
keyboard-configuration keyboard-configuration/store_defaults_in_debconf_db boolean true
keyboard-configuration keyboard-configuration/modelcode string pc105
keyboard-configuration keyboard-configuration/unsupported_layout boolean true
keyboard-configuration keyboard-configuration/layoutcode string de
keyboard-configuration keyboard-configuration/compose select No compose key
keyboard-configuration keyboard-configuration/model select Generic 105-key (Intl) PC
keyboard-configuration keyboard-configuration/variant select German
keyboard-configuration keyboard-configuration/altgr select The default for the keyboard layout
keyboard-configuration keyboard-configuration/xkb-keymap select de
keyboard-configuration keyboard-configuration/switch select No temporary switch
keyboard-configuration keyboard-configuration/unsupported_config_options boolean true
keyboard-configuration keyboard-configuration/unsupported_options boolean true
keyboard-configuration keyboard-configuration/toggle select No toggling
keyboard-configuration keyboard-configuration/ctrl_alt_bksp boolean false
EOF
2. apt-get install console-setup
Wow, keyboard works, BUT: console-setup didn't read the correct font (wrong face & size). I can reconfigure it manually of course, but that's not what I wanted...
===
Conclusion:
When doing a manual configuration using "dialog", everything works as expected. That leads to this conclusion:
1. Seems that the packages don't follow all the variables they should when configuring the package.
2. Since console-data and console-common are told to be outdated, console-setup seems to be its successor... but the proven bugs don't make it any better :(
What do you think?
--- End Message ---