Seeing the boot status notification “Failed to start Set Console Font and Keymap” (or systemd-vconsole-setup.service failure) during Ubuntu startup can cause concern when reviewing systemd initialization logs. This service is responsible for configuring the virtual console font, character encoding, and keyboard keymap before the graphical user environment or display manager loads. While Ubuntu typically boots past this alert into the desktop, the failure indicates that the early console setup failed due to missing font definitions in /etc/vconsole.conf, syntax errors in /etc/default/console-setup, or desynchronised locale parameters in the initramfs image.
Inspect Service Status and Detailed Journal Logs
Querying the systemd journal reveals the exact file path or missing font file triggering the service exit code.
- Open a terminal window (press Ctrl + Alt + T).
- Check the status of the console setup service:
systemctl status systemd-vconsole-setup.service - Inspect detailed logs recorded during the latest boot:
sudo journalctl -b -u systemd-vconsole-setup.service - Look for error messages such as
cannot find font,loadkeys: error, orfailed to open /etc/vconsole.conf.
Reconfigure and Reinstall the console-setup Package
Ubuntu utilizes the Debian-derived console-setup framework rather than the standard Arch/RedHat vconsole.conf system. Reconfiguring this package restores default, compatible fonts.
- Reconfigure the console font and keyboard layout:
sudo dpkg-reconfigure console-setup - Follow the interactive terminal prompts:
- For Encoding to use on the console, select UTF-8 and press Enter.
- For Character set, choose Combined – Latin; Slavic Cyrillic; Hebrew; basic Arabic (or Guess optimal character set).
- For Console font, select Fixed or Terminus.
- For Font size, select 16.
- Reinstall the base package if necessary:
sudo apt install --reinstall console-setup kbd
Verify and Standardise /etc/default/console-setup
Corrupted font settings in the default console configuration file prevent systemd from resolving typography files during early boot.
- Open the configuration file in nano:
sudo nano /etc/default/console-setup - Ensure the core variables match standard defaults:
ACTIVE_CONSOLES="/dev/tty[1-6]" CHARMAP="UTF-8" CODESET="guess" FONTFACE="Fixed" FONTSIZE="8x16" - Save the file by pressing Ctrl + O and Enter, then exit with Ctrl + X.
- Test the configuration immediately:
sudo setupcon
Create /etc/vconsole.conf for Upstream systemd Compatibility
Certain upstream systemd packages expect the standard freedesktop /etc/vconsole.conf configuration file to exist alongside Debian settings.
- Create or edit the vconsole configuration file:
sudo nano /etc/vconsole.conf - Insert compatible console mapping parameters:
KEYMAP=us FONT=Lat2-Terminus16 FONT_MAP= - Save the file and exit nano.
Update the Initial RAM File System (initramfs)
Because the console font service runs during early kernel boot before root partitions are fully mounted, the console font settings must be baked directly into the initramfs image.
- Regenerate the initramfs image for all installed Linux kernels:
sudo update-initramfs -u -k all - Restart the service to verify that it starts cleanly:
sudo systemctl restart systemd-vconsole-setup.service - Verify that the status now reports active (exited) with zero error codes:
systemctl status systemd-vconsole-setup.service