How to change the language of the Ubuntu system from English to Spanish from the terminal

But first, a little Linux

Linux is a project that has been developing since the early 90's. It presents itself as free software, with high customization capabilities by its users. It is thanks to the large community of users that this software has grown so much.

Developers make a constant and important contribution to the improvement and optimization of the operating system. Hence, Linux, from any of its distributions, has caught the attention of many.




What Ubuntu looks like

Linux has a large number of distributions, but, without a doubt, Ubuntu is positioned as one of the best. Released in 2004, the name "Ubuntu" has its roots in Zulu and Xhosa languages. All this translates into its meaning of "Humanity for others".

Ubuntu was, in fact, a project developed to be distributed all over the world. But above all, make it suitable for everyone. Ubuntu was mainly used on servers, so the level of complexity was quite high.

How to change the language of the Ubuntu system from English to Spanish from the terminal

Deep technical knowledge was needed to know how to install packages or programs in Ubuntu from the terminal, for example. However, things have changed and now, with ease, you can change the language of the Ubuntu system.

The change of language

Change the language of the sistema Ubuntu it is a process which, although tedious, is quite simple. As simple as uninstalling Ubuntu programs easily from the terminal.

Now, if you are learning how to use Ubuntu, don't worry. Make sure you follow the instructions exactly and you won't have any problems. However, it's worth remembering that if you're having trouble, you should learn how to optimize and clean up your Ubuntu Linux system.



Step by step

To get started with the language change of the operating system, the first thing you will need to do is install the corresponding packages. So for change the language of the Ubuntu system, you need to log into the terminal and enter the following commands:


  • cd / usr / share / locales /
  • sudo / install-language-pack en_ES

Editing files

The next step is to mark these packages as default in the operating system. That's why you will be editing the files that will be shown below:

  • sudo nano / etc / environment
  • sudo nano / etc / default / locale

In each of these files you will find data packets for the language to be set. You also need to make a small change to them. Each package or file should look like this:

  • LANG = “es_ES.UTF-8”
  • LC_ALL = “en_US.UTF-8”
  • LINGUA = ”es_ES”

Language priority

After editing the files, it's time to set the language priority settings. For this, you will need to edit the file sudo nano /var/lib/locales/supported.d/local.

How to change the language of the Ubuntu system from English to Spanish from the terminal

It will be in this file where both primary and secondary languages ​​will be indicated. Therefore, the packages or files to be modified must be the following:



  • It_ES.UTF-8 UTF-8
  • It_ES.UTF-8 UTF-8

Final details

There is little to finish! Help the operating system in the language adaptation process with the following command: sudo dpkg-reconfigure locales. Therefore, when the system restarts, it will show the installed language. That way, there is only one thing left to do: reboot the system. To do this, enter the command sudo reboot.


Have fun with Ubuntu!

Restarting the computer, you will have seen how, successfully, the language of the operating system has been changed. If you have any problems, you may want to know how to update Ubuntu system to the latest version from the terminal.

However, there shouldn't be any problems. The only thing that should be presented is the opportunity to fully enjoy Ubuntu Linux in your preferred language.

add a comment of How to change the language of the Ubuntu system from English to Spanish from the terminal
Comment sent successfully! We will review it in the next few hours.