Erro de libcurl ao instalar o MongoDB

baixei o mongoDB server daqui https://www.mongodb.com/download-center/community

é o arquivo mongodb-org-server_4.0.6_amd64.deb

ao rodar a instalação recebo o seguinte erro:

$ sudo dpkg -i mongodb-org-server_4.0.6_amd64.deb
(Reading database ... 251610 files and directories currently installed.)
Preparing to unpack mongodb-org-server_4.0.6_amd64.deb ...
Unpacking mongodb-org-server (4.0.6) over (4.0.6) ...
dpkg: dependency problems prevent configuration of mongodb-org-server:
 mongodb-org-server depends on libcurl3 (>= 7.16.2); however:
  Package libcurl3 is not installed.

dpkg: error processing package mongodb-org-server (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Errors were encountered while processing:
 mongodb-org-server

então depois tento instalar a libcurl3,mas aí recebo outro erro:

$ sudo apt install libcurl3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libcurl3 : Conflicts: libcurl4 but 7.58.0-2ubuntu3.6 is to be installed
 libcurl4 : Conflicts: libcurl3 but 7.58.0-2ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Alguém sabe como resolver? Meu sistema é o Linux Mint 19.

1 curtida

Tô no Mint19 tbm.

Roda o apt --fix-broken install. Provavelmente seu APT quebrou.

1 curtida

como rodo o –fix-broken install ?
Tentei assim, mas não deu:

$ apt --fix-broken install
apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

na verdade o comando fix é
$ sudo apt-get --fix-broken install ao inves de $ apt --fix-broken install

Dessa forma consegui instalar $ sudo apt install libcurl3 com sucesso

Isso aí. Vim comentar isso agora.