Change system language on Ubuntu 20.04 from command line

The objective of this tutorial is to change system’s language from a command line on Ubuntu 20.04 Focal Fossa Server.

In this tutorial you will learn:

  • How to check system language settings
  • How to set new system language from command line

Change system language on Ubuntu 20.04 from command line

Change system language on Ubuntu 20.04 from command line

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Change system language on Ubuntu 20.04 from command line step by step instructions

  1. First step is to check the current system language settings. To do so execute the locale command with no arguments:
    $ locale
    
    Check the current system language settings

    Check the current system language settings using locale command.

  2. Reconfigure, the current system language settings. To do so execute the bellow dpkg-reconfigure command:
    $ sudo dpkg-reconfigure
    
    Re-configuring current locales language settings

    Re-configuring current locales language settings

    DID YOU KNOW?
    The systemd specific command to change system language is localectl which allows for more configuration options. However, in this case using dpkg-reconfigure is easier as it also automatically downloads the required language pack and directly provides the user with an option to set new system language in one go. In any case it is worth to check the man localectl for more information.


  3. Next, select your desired system language.

    Select system language

    Select system language from the menu using navigational arrows and SPACE. Once ready move to OK and press ENTER

  4.  primary language for the entire system

    Select which language you wish to use as primary language for the entire system.

  5. Log out and log in to confirm your selection by execution the locales command.
    Check new language settings

    Check new language settings