Home  >  Article  >  Operation and Maintenance  >  What to do if Linux cannot open the terminal

What to do if Linux cannot open the terminal

WBOY
WBOYOriginal
2022-07-19 16:35:388429browse

Solution: 1. Use the "apt install xterm" command to install an auxiliary terminal xterm; 2. Use "sudo gnome-terminal" to view the cause of the terminal error; 3. Use "vi /etc/default/locale "Open the locale folder and replace the specified content; 4. Restart the system.

What to do if Linux cannot open the terminal

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What to do if Linux cannot open the terminal

Problem introduction

On the development board Firefly, the ubuntu operating system is used, because its default is English input method, no Chinese input method. So, I installed the Chinese input method, but after installing it, I found that the terminal could no longer be opened. . . . . .

Nothing happens whether you right-click, click on the program, or use the shortcut keys.

Solution:

1. Install an auxiliary terminal xterm

Since the system’s own terminal cannot be used, in order to facilitate the next operation, First install an auxiliary terminal xterm

$ sudo apt install xterm

What to do if Linux cannot open the terminal

2. Open the xterm auxiliary terminal and enter the following command to view the cause of the terminal error

$ sudo gnome-terminal

3. Enter the following command to open the locale file

$ vi /etc/default/locale

4. Replace the previous content with the following content

LANG=zh_CN.GB2312
LC_CTYPE=“zh_CN.UTF-8”
LC_NUMERIC=“zh_CN.UTF-8”
LC_TIME=“zh_CN.UTF-8”
LC_COLLATE=“zh_CN.UTF-8”
LC_MONETARY=“zh_CN.UTF-8”
LC_MESSAGES=“zh_CN.UTF-8”
LC_PAPER=“zh_CN.UTF-8”
LC_NAME=“zh_CN.UTF-8”
LC_ADDRESS=“zh_CN.UTF-8”
LC_TELEPHONE=“zh_CN.UTF-8”
LC_MEASUREMENT=“zh_CN.UTF-8”
LC_IDENTIFICATION=“zh_CN.UTF-8”
LC_ALL=zh_CN.UTF-8

5. Finally, restart the system

$ sudo reboot

Recommended learning: Linux video tutorial

The above is the detailed content of What to do if Linux cannot open the terminal. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn