0% found this document useful (0 votes)
22 views

node.js - dpkg_ error processing archive ( On installing Nodejs) - Stack Overflow

Uploaded by

Herve ngeleka
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

node.js - dpkg_ error processing archive ( On installing Nodejs) - Stack Overflow

Uploaded by

Herve ngeleka
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

node.js - dpkg: error processing archive ( On installing Nodejs) - Stack... https://stackoverflow.com/questions/74410483/dpkg-error-processing-a...

dpkg: error processing archiveSe(connecter


On installing
avec Google Nodejs)
Asked 2 years, 2 months ago Modified 6 months ago Viewed 17k times

Connectez-vous à Stack
This error occurred while installing nodejs
Exchange avec votre
compte Google
11
Plus besoin de mémoriser vos
mots de passe. Connexion
simple, rapide et sécurisée.

Continuer

I am trying to install nodejs but facing this error while installing.

node.js ubuntu installation dpkg

Share Improve this question edited Apr 3, 2024 at 12:15 asked Nov 12, 2022 at 4:59
Follow Ankur Singh
171 1 2 7

By clicking “Accept all cookies”, you agree Stack Exchange


can store cookies on your device and disclose information in
See this: askubuntu.com/a/1362727/666464 I had the same problem today. – GhitaB Dec 21, 2022 at
accordance with our Cookie Policy.
10:54

Accept all cookies Necessary cookies only

4 Answers Sorted by: Highest score (default)


Customize settings

1 sur 4 13-01-25, 15:32


node.js - dpkg: error processing archive ( On installing Nodejs) - Stack... https://stackoverflow.com/questions/74410483/dpkg-error-processing-a...

I got the same error,

36 Preparing to unpack .../nodejs_18.15.0-deb-1nodesource1_amd64.deb ...


Unpacking nodejs (18.15.0-deb-1nodesource1) ...
dpkg: error processing archive /var/cache/apt/archives/nodejs_18.15.0-
deb-1nodesource1_amd64.deb (--unpack):
trying to overwrite '/usr/share/systemtap/tapset/node.stp', which is also in
package libnode72:amd64 12.22.9~dfsg-1ubuntu3
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_18.15.0-deb-1nodesource1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

but this is the exact error,

trying to overwrite '/usr/share/systemtap/tapset/node.stp', which is also in


package libnode72:amd64 12.22.9~dfsg-1ubuntu3

In my case removed the libnode72 package by running the following command.

sudo apt remove libnode72

# If above does not work for you, run below commands

sudo dpkg --remove --force-remove-reinstreq libnode-dev


sudo dpkg --remove --force-remove-reinstreq libnode72:amd64

I think in your case you have to remove the libnode-dev package. Please try it by running the
following command,

sudo apt remove libnode-dev

If this doesn't work for you or anyone, please add a comment.

Share Improve this answer Follow edited Apr 5, 2023 at 21:13 answered Apr 5, 2023 at 20:57
Kushan Gunasekera
8,506 8 48 61

By clicking “Accept all cookies”, you agree Stack Exchange


can1store
remove
cookies'libnode72' save my
on your device andlife... after: sudo
disclose apt --fix-broken
information in install > sudo apt update > sudo apt
remove
accordance withnodejs > sudo
our Cookie apt remove nodejs-doc > curl -fsSL deb.nodesource.com/setup_16.x | sudo -E
Policy.
bash - > sudo apt-get install -y nodejs ... thanks bro ! – cbacelar Apr 7, 2023 at 14:12
Accept all cookies Necessary cookies only

Customize settings

2 sur 4 13-01-25, 15:32


node.js - dpkg: error processing archive ( On installing Nodejs) - Stack... https://stackoverflow.com/questions/74410483/dpkg-error-processing-a...

sudo dpkg -i --force-overwrite /var/cache/apt/archives/nodejs_18.12.1-


deb-1nodesource1_amd64.deb

5 sudo apt -f install

sudo apt update


sudo apt dist-upgrade

Adapted from this: https://askubuntu.com/a/1362727/666464 I had the same problem today,


and now it is solved.

Share Improve this answer Follow answered Dec 21, 2022 at 10:56
GhitaB
3,427 5 36 64

Thanks, I faced the same issue. Got fixed after removing libnode72 .

3 sudo apt remove libnode72

If you get error while removing trying to overwrite /usr/share/systemtap/tapset/node.stp ,


which is also in package libnode72:amd64 12.22.9~dfsg-1ubuntu3.4

Remove nodejs first:

sudo apt remove nodejs

Then try to remove libnode72 again

sudo apt remove libnode72

Then install new nodejs version.

Share Improve this answer Follow edited Apr 8, 2024 at 2:58 answered Apr 3, 2024 at 9:23
AntonyMN
By clicking “Accept all cookies”, you agree Stack Exchange Lokesh Rana
913 1 in12
can store cookies on your device and disclose information 27 31 2
accordance with our Cookie Policy.

Accept all cookies Necessary cookies only

Customize settings

3 sur 4 13-01-25, 15:32


node.js - dpkg: error processing archive ( On installing Nodejs) - Stack... https://stackoverflow.com/questions/74410483/dpkg-error-processing-a...

I got the same error while installing nodejs v18 on wsl here is the solution:

run command dpkg -l | grep node


0
then you will be able to see ii libnode72:amd64
12.22.9~dfsg-1ubuntu3.6 amd64 evented I/O for V8 javascript - runtime library

then remove this using dpkg -r libnode72:amd64

then simply run sudo apt install nodejs

Share Improve this answer Follow answered Jun 27, 2024 at 12:38
Om Gupta
1 2

By clicking “Accept all cookies”, you agree Stack Exchange


can store cookies on your device and disclose information in
accordance with our Cookie Policy.

Accept all cookies Necessary cookies only

Customize settings

4 sur 4 13-01-25, 15:32

You might also like