Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Node.js XX on UbuntuXX Installation fail #1541

Closed
AftabAhmedAbro opened this issue Apr 13, 2023 · 4 comments
Closed

[ERROR] Node.js XX on UbuntuXX Installation fail #1541

AftabAhmedAbro opened this issue Apr 13, 2023 · 4 comments
Assignees
Labels

Comments

@AftabAhmedAbro
Copy link

Describe your bug
I am getting this issue always whenever I try to upgrade my node version using ubuntu command

'''
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_19.9.0-deb-1nodesource1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
'''

Distribution Information:

  • OS: Ubuntu 20.04

Node Version:

  • Node: 14.17.xxx

Expected behavior
It needs to upgrade my nodejs version to 19+

Screenshots
image

@bjnaga
Copy link

bjnaga commented Apr 15, 2023

Try this code it will install nodejs_19.9.0

sudo dpkg -i --force-overwrite /var/cache/apt/archives/nodejs_19.9.0-deb-1nodesource1_amd64.deb

Explanation:
the downloaded file is saved in /var/cache/apt/archives/ file all you need to do now i forcefully install .deb package
manually, i was able to install version 18 LTS easily with this method
Screenshot from 2023-04-15 18-11-44

there is a slight change my command because I'm already in the /var/cache/apt/archives/ directory.

Let me know if your need more help

@AftabAhmedAbro
Copy link
Author

let me try this

@Grothesk242
Copy link

Just deinstall libnode-dev
It does not fit to the nodesource packaged variant anyway.
And this is exactly what apt/dpks is telling you.

@JesusPaz
Copy link
Contributor

you can try deleting your current node version and installing the one you need. Maybe this issue will help #191

@JesusPaz JesusPaz self-assigned this Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants