Score:0

Ubuntu 20.04 terminal is not responding

cn flag

When I open terminal, I see no prompt. Pressing any button does not help. What can I do to fix my terminal? I have seen this question but no solution works as I can't enter command at all. Terminal is just there, doing nothing.

I installed node and basic commands to install angular cli. I setup my project and ran npm install. ng serve was the last command when it happened enter image description here

David avatar
cn flag
Did the terminal ever work?
Sadaf Zohra avatar
cn flag
yes. I was setting up environment for angular when this happened.
David avatar
cn flag
OK so please post the exact commands and or steps you did to setup this app. Add them and this info to the question with edit. With out all the details very hard to help you.
Score:1
tk flag

Faced the same issue on Ubuntu 20.04.4 LTS after installing ng-common package and doing some npm build/ install/ run commands.

The part of my .bash_history file before I've faced the issue:

npm run build
ng
sudo apt install ng-common
npm run build
ls
sudo npm run build
npm run build
npm start
npm run build .
npm install
npm start
npm run build
npm start

As I discovered, the issue lied in .bashrc file that had the following lines:

# Load Angular CLI autocompletion.
source <(ng completion script)

It turned out that I've enabled CLI autocompletion during npm run build and .bashrc was updated by ng-common package appropriately. Remove the line from .bashrc to get your terminal working.

P.S. In order to edit .bashrc file you may use either root shell in safe mode or you may edit the file using text editor in GUI.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.