The purpose of this tutorial is to show how to change the system language from command line on Ubuntu 22.04 Jammy Jellyfish. This configuration is especially applicable for Ubuntu 22.04 servers, where there is no GUI to change your system language, although this also works fine on desktop systems.
In this tutorial you will learn:
- How to check system language settings
- How to set new system language from command line
|Category||Requirements, Conventions or Software Version Used|
|System||Ubuntu 22.04 Jammy Jellyfish|
|Other||Privileged access to your Linux system as root or via the
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
Change system language on Ubuntu 22.04 from command line step by step instructions
- In the first step we will open a command line terminal and check the current system language settings. To do so, execute the locale command with no arguments:
- Next, we will reconfigure the current system language settings. To do so, execute the below
$ sudo dpkg-reconfigure locales
DID YOU KNOW?
The systemd specific command to change system language is
localectlwhich allows for more configuration options. However, in this case using
dpkg-reconfigureis 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 localectlfor more information.
- Next, select your desired system language. Select system language from the menu using navigational arrows and
SPACE. Once ready move to
OKby using the
TABkey and press
- Next, select which language you wish to use as primary language for the entire system.
- Log out and log in to confirm your selection by execution the
In this tutorial, we saw how to change the system langauge from the command line on Ubuntu 22.04 Jammy Jellyfish Linux. The new language settings should persist for all new packages installed, and will be observable across all areas of your system, provided that the packages you install have a translation available for the language you selected.