Failed while booting

while booting the system it says:
failed to load vconsole-setup, after investigations it sounds that:
unable to open file /user/bin/loadkeys → failed to start Virtual console setup
what can i do?"
thanks

Welcome @Waleed_trz! :wave: :sunglasses: :enos_flag:

I suspect what’s happening is vconsole is trying to access a keymap that doesn’t exist. I encounter this issue on all of my systems, because vconsole setup by default tries to access the au keymap (Australia), which isn’t a valid keymap.

For clarity, the keymap should match what type of keyboard you’re using. So in Australia, we actually use the US standard keyboard layout, so my keymap is us.

I should also note, that while this error is thrown on boot, I’ve never encountered any issues as a result of it. The vconsole service starts still.

To fix it though:

Step 1 - Find your correct keymap:

Run this command to list available keymaps. You need to find your correct keymap in that list, and remember it.

localectl list-keymaps

or (replacing somekeymap with an actual keymap)…

localectl list-keymaps | grep -i somekeymap

Step 2 - Set the correct keymap

Now run this command, to set the correct keymap (replacing somekeymap with your correct keymap).

localectl set-keymap --no-convert somekeymap

Step 3 - Update the bootimage to apply those changes

You need to only run one of these commands below, depending on whether you use systemd-boot (#1) or if you’re using Grub (#2).

#1 When using default systemd-boot and dracut:

sudo reinstall-kernels

#2 When using Grub and dracut:

sudo dracut-rebuild

Reboot and hopefully the error is gone.

2 Likes