尝试在我的 unbuntu 机器上安装 nodejs。
我第一次输入时遵循以下说明:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
然后我输入:
sudo apt-get install -y nodejs
这就是我得到的:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libc-ares2 libnode72
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
nodejs
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/25.4 MB of archives.
After this operation, 123 MB of additional disk space will be used.
(Reading database ... 191617 files and directories currently installed.)
Preparing to unpack .../nodejs_14.20.0-deb-1nodesource1_amd64.deb ...
Unpacking nodejs (14.20.0-deb-1nodesource1) over (12.22.9~dfsg-1ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/nodejs_14.20.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_14.20.0-deb-1nodesource1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
知道如何修复此问题吗?谢谢