English 中文(简体)
dpkg:误差处理档案(安装Nodejs)
原标题:dpkg: error processing archive ( On installing Nodejs)

This error occurred while installing nodejs https://i.stack.imgur.com/JMRiT.jpg

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

问题回答

我有同样的错误,

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)

但这正是错误,

trying to overwrite  /usr/share/systemtap/tapset/node.stp , which is also in package libnode72:amd64 12.22.9~dfsg-1ubuntu3

在我的案件中,通过管理以下指挥,删除了<代码>libnode72的包裹。

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

我认为,就你而言,你必须删除<代码>libnode-dev包。 请行使以下指挥权来审判:

sudo apt remove libnode-dev

如果你或任何人不工作,请补充评论。

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

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.

我感谢我也面临同样的问题。 在删除<代码>libnode72后确定。

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

首先是:

sudo apt remove nodejs 

然后试图删除<代码>libnode72。 再次重申

sudo apt remove libnode72

Then install new nodejs version.





相关问题
Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

Configuring kernel

After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...

save Exceptions to file in python

I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

How to pass "--external-locking" for mysqld in Ubuntu

I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...

"g++" and "c++" compiler

I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...

热门标签