[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

On Mon, Sep 19, 2016 at 07:31:12PM +0200, Vincent Lefevre wrote:
> Just after the upgrade of keyboard-configuration from 1.148 to 1.149,
> I could see that my previous configuration was lost. More precisely,
> config.dat changed in the following way:

When /etc/default/keyboard is ok, config.dat is ignored by console-setup 
(default values are set before asking questions).

> and /etc/default/keyboard changed in the following way:

If this file becomes corrupted during upgrade, then this is certainly a 
bad thing.
> -XKBMODEL="pc105"

This doesn't look as a file created by console-setup.  Because of the 
missing XKBMODEL, it looks like a file created by systemd-localed.service.

Would you experiment with the command

# localectl set-keymap ....


# localectl set-x11-keymap ...

and see if it corrupts /etc/default/keyboard.
> I don't know the possible consequences, though. The
> /usr/share/doc/keyboard-configuration/changelog.gz file just says:
> console-setup (1.149) unstable; urgency=medium
>   [ Updated translations ]
>   * Danish (da.po) by Joe Hansen

If I am right that the file was corrupted by systemd-localed, then 
/etc/default/keyboard must have been corrupted after the upgrade of 
console-setup.  If this file was corrupted before the upgrade, then 
console-setup would have repaired it.

> Note: I have
> -rw-r--r-- 1 root root 145 2016-09-19 19:03:19 /etc/default/keyboard
> Thus this file was modified when keyboard-configuration was upgraded
> (and before this upgrade of the Linux kernel and the nvidia packages).

Do you know what other packages were upgraded after console-setup and 
before the Linux kernel and nvidia?

> This error message is just a consequence of this bug.

Yes.  The error message was added in version 1.138 after I became aware 
that other packages modify the configuration file of console-setup.

Anton Zinoviev

Reply to: