See https://askubuntu.com/questions/630118/ and https://askubuntu.com/questions/328463/.
This problem seems to be caused by a mismatch in the naming of fonts
that console-setup expects vs what are in
thus copied to
/etc/console-setup/ when you pick a font to use (using
If you go to a console and do an
strace /lib/udev/console-setup-tty fbcon,
you can see that it is trying to open fonts like this:
But if you look in
/etc/console-setup/, there are only a handful of
fonts in there (the ones you picked), and they look more like this:
One has height x width, and the other has width x height.
The problem can be fixed in a few ways.
/lib/udev/console-setup-tty could be fixed - This is the more
permanent, upstream solution.
(2) You could manually change
/etc/default/console-setup, reversing the
height and width in FONTSIZE. This will need to be done each time you
change the fonts using
dpkg-reconfigure console-setup. But when the
machine reboots, that preference is kept.
(3) You could install the fonts that console-setup-tty expects. This
is what I call the "overkill" option. I did it like this:
# install console fonts and then set up console
Create a script called
case "$1" in
# console fonts are not named properly in Ubuntu 15.04, compensate
[[ -d $parent/$subdir ]] || mkdir $parent/$subdir
for x in $( cd $srcdir ; ls -1 ) ; do
# rearrange the two numbers from HHxWW to WWxHH
y=$(echo "$x" | sed -e 's/^\([^-]*\)-\([^0-9]*\)\([0-9]*\)x\([0-9]*\).psf.gz/\1-\2\4x\3.psf.gz/g')
# whether the pattern above matches or not, we'll be uncompressing here
[[ ! -f $parent/$subdir/$z ]] && zcat $srcdir/$x > $parent/$subdir/$z
[[ ! -L $parent/$z ]] && ln -sv $subdir/$z $parent/$z
rm -rf $parent/$subdir
# only remove broken links (links to the fonts we removed above)
rm $(find -L $parent -type l)
echo "$(basename $0) install|uninstall"
For a quick pragmatic solution, I'd do #2, with a comment in the file that
it may be need to be re-done if you choose a different font (assuming the
comment does not also get overwritten).
But #3 works well with minimal fuss or mess.