![如何修复 curl 删除其他依赖项?](https://linux22.com/image/913587/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%20curl%20%E5%88%A0%E9%99%A4%E5%85%B6%E4%BB%96%E4%BE%9D%E8%B5%96%E9%A1%B9%EF%BC%9F.png)
我想在 Ubuntu 18.04 上安装 node js。我从官方存储库进行安装。
sudo apt install nodejs npm.
然后发现版本是8。所以我想按照官方文档进行更新。
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
它说 curl 未安装。所以我安装了 curl
sudo apt install curl
。
我收到了这条消息。
dpkg: libcurl3:amd64: dependency problems, but removing anyway as you requested:
opera-stable depends on libcurl3 (>= 7.16.2) | libcurl4 (>= 7.58.0); however:
Package libcurl3:amd64 is to be removed.
Package libcurl4 is not installed.
atom depends on libcurl3 | libcurl4; however:
Package libcurl3:amd64 is to be removed.
Package libcurl4 is not installed.
Removing libcurl3:amd64 (7.58.0-2ubuntu2) ...
Selecting previously unselected package libcurl4:amd64.
(Reading database ... 305616 files and directories currently installed.)
现在该如何修复?