如何修复 curl 删除其他依赖项?

如何修复 curl 删除其他依赖项?

我想在 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.)

现在该如何修复?

相关内容