cryptsetup can not coexist with console-common

Bug #1528861 reported by Steven Shiau
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The package cryptsetup can not coexist with console-common due to cryptsetup depends on plymouth. However, plymouth conflicts with console-common, so this makes the cryptsetup can not coexist with console-common. This does not happen on Debian Sid because cryptsetup on Debian does not depend on plymouth. We need console-common is because we need the program install-keymap from console-common for the live CD we want to create.

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus (development branch)"

# apt-get install cryptsetup console-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 cryptsetup : Depends: plymouth but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Thanks.

Steven.

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1528861] [NEW] cryptsetup can not coexist with console-common

On Wed, Dec 23, 2015 at 02:13:10PM -0000, Steven Shiau wrote:
> The package cryptsetup can not coexist with console-common due to
> cryptsetup depends on plymouth. However, plymouth conflicts with
> console-common, so this makes the cryptsetup can not coexist with
> console-common. This does not happen on Debian Sid because cryptsetup on
> Debian does not depend on plymouth. We need console-common is because we
> need the program install-keymap from console-common for the live CD we
> want to create.

Why do you need install-keymap? The standard way to manage keymaps in
Ubuntu is with the console-setup and keyboard-configuration packages, which
save the keyboard map to /etc/console-setup/cached.kmap.gz; not with
console-common, which is considered obsolete.

Revision history for this message
Steven Shiau (stevenshiau) wrote :

Thanks.
The reason we need to use install-keymap is it's easier to do that in unattended mode, i.e. e.g. to set the French keyboard, just use:
install-keymap /usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz

So if console-common is obsolete, is that possible to use console-setup and keyboard-configuration to configure the keymap in unattended, non-interactive way? If so, that would be great.
Appreciate.

Steven.

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1528861] Re: cryptsetup can not coexist with console-common

On Thu, Dec 24, 2015 at 09:20:31AM -0000, Steven Shiau wrote:
> Thanks.

> The reason we need to use install-keymap is it's easier to do that in
> unattended mode, i.e. e.g. to set the French keyboard, just use:
> install-keymap /usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz

> So if console-common is obsolete, is that possible to use console-setup
> and keyboard-configuration to configure the keymap in unattended,
> non-interactive way? If so, that would be great. Appreciate.

For an image that accepts debconf preseeding at installation time, you can
do so with the following settings:

  keyboard-configuration/layoutcode fr
  keyboard-configuration/variantcode oss_latin9

There are various ways that this information can be fed into a live image
that doesn't use debconf for the keyboard configuration. For instance,
ubuntu-default-builder supports configuring the default keyboard for the
live image using i18n/keyboard.txt with a single line of 'fr oss_latin9'.

Revision history for this message
Steven Shiau (stevenshiau) wrote :

OK, got it. Thank you very much.

Steven.

Revision history for this message
Steven Shiau (stevenshiau) wrote :

I found a side effect if console-common is not installed. There is a problem to run "dpkg-reconfigure console-data", i.e. when it's run, after selecting "Select keymap from arch list", nothing happens. Normally it should ask the "Keyboard layout family", then "Keyboard layout".
This is how to reproduce it:
1. bootstrap an Ubuntu xenial environment:
debootstrap --verbose --arch=amd64 --components=main,universe --exclude=console-common --include=console-data xenial xenial-chroot http://free.nchc.org.tw/ubuntu

2. chroot xenial-chroot

3. dpkg-reconfigure console-data

4. Select "Select keymap from arch list", then it just quits without asking "Keyboard layout family", and "Keyboard layout". Nothing happens.

Any comments about this?
Thanks.

Steven.

Revision history for this message
Steven Shiau (stevenshiau) wrote :

The final beta for Xenial will be released recently. However, this issue still remains.
Package console-common still conflicts with plymouth and cryptsetup. Therefore if plymouth and cryptsetup are installed, there is no way "dpkg-reconfigure console-data" can be used to tune the keymap.
Is that possible at least to make it like Debian that console-common can coexist with cryptsetup?
Thanks.

Steven

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cryptsetup (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.