Score:0

Installation exits before I can press Y to continue when installing nodejs

mu flag

Im a new Ubuntu/Linux user and im having a bit of trouble installing nodejs. I tried installing it using sudo apt install nodejs and it returned this:

Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-minimal python2.7 python2.7-minimal
Suggested packages:
  python-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
  libpython-stdlib libpython2.7-minimal libpython2.7-stdlib nodejs python python-minimal python2.7 python2.7-minimal
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.1 MB of archives.
After this operation, 144 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
username@server:/$

It looks like it aborted before I had the chance to press Y. What am I doing wrong?

Marc Vanhoomissen avatar
in flag
Not sure what you do but alternatively you could use `sudo apt-get -y install nodejs`. This is equivalent to answer Yes. I am surprised that nodejs requires Python 2.7.
Score:0
cn flag

Try the -y option.

sudo apt install nodejs -y
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.