I am having problem installing packages in my Ubuntu system. The problem says:

Errors were encountered while processing console-data

Errors were encountered while processing console-common E: Sub-process /usr/bin/dpkg returned an error code (1)

Jan 11 12:30:57 digitalWeapon systemd[1]: Failed to start The Ap Processing triggers for systemd (245.4-4ubuntu3.3) ... Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ufw (0.36-6) ...
Errors were encountered while processing: console-data
E: Sub-process /usr/bin/dpkg returned an error code (1)
Fetched 338 kB in 2s (150 kB/s)
Selecting previously unselected package apache2-data.
(Reading database... 366640 files and directories currently installed.) Preparing to unpack .../apache2-data_2.4.41-4ubuntu3.1_all.deb ...
Unpacking apache2-data (2.4.41-4ubuntu3.1) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../apache2-utils_2.4.41-4ubuntu3.1_amd64.deb ..
Unpacking apache2-utils (2.4.41-4ubuntu3.1) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.41-4ubuntu3.1_amd64.deb ...
Unpacking apache2 (2.4.41-4ubuntu3.1)
Setting up console-data (2:1.12-8) ...
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 1 21, <STDIN> line 374.
Looking for keymap to install:
console-data/keymap/full doesn't exist
Usage: install-keymap [ keymap_file | NONE | KERNEL ]
dpkg: error processing package console-data (--configure):
installed console-data package post-installation script subprocess returned error exit status 1 Setting up apache2-data (2.4.41-4ubuntu3.1) ...
Setting up apache2-utils (2.4.41-4ubuntu3.1) ...
dpkg: dependency problems prevent configuration of console-common:
console-common depends on console-data; however:
Package console-data is not configured yet.
dpkg: error processing package console-common (--configure): dependency problems - leaving unconfigured
Setting up apache2 (2.4.41-4ubuntu3.1) ...
No apport report written because the error message indicates its a followup error from a previous failure.

1 Answer 1


I had the exact same error and solved it by removing the console-data and console-common packages and installing them again.

Remove the packages

sudo apt remove --purge console-common console-data

Installing the packages again

sudo apt install console-common console-data

When installing these packages again, it will ask for the policy for handling keymaps. Select Don't touch keymap and press enter.

Hope this helps.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .