This error occurred while installing nodejs
I am trying to install nodejs but facing this error while installing.
This error occurred while installing nodejs
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.
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 ...
I got this error: OperationalError at / unable to open database file Things I ve tried so far are setting the absolute path of my dev.db file in the settings.py. I ve tried adding www-data to my ...
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 ...
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. ...
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 ...
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" ...
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 ...
I ve just installed Zend Studio 7.0.2 on my Linux-Ubuntu 9.10 system. There were no problems during the installation but when I try to create a new project, the New Project form hangs when I click ...