libcurl3 dependency error

1,079 views
Skip to first unread message

Amar Nath

unread,
Jun 26, 2018, 8:32:39 PM6/26/18
to mongodb-user
mongod requires libcurl3. But libcurl3 can't be installed simultaneously with libcurl4. I can't run other applications such as Virtualbox 5.2 that require libcurl4. I have to uninstall VirtualBox to run mongod. 

Wan Bachtiar

unread,
Jun 26, 2018, 10:22:58 PM6/26/18
to mongodb-user

mongod requires libcurl3. But libcurl3 can’t be installed simultaneously with libcurl4

Hi Amar,

Could you post any message indicating the dependency error ?

Also, could you provide the following information:

  • MongoDB version.
  • Operating Systems and version.

Regards,
Wan.

Amar Nath

unread,
Jun 27, 2018, 7:35:18 AM6/27/18
to mongod...@googlegroups.com
mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by mongod)

This is the error generated. It works fine when I install libcurl3. But installing 'libcurl3' uninstalls 'libcurl4' and 'Virtualbox5.2'. Virtualbox is an important software. there are a bunch of other softwares that require libcurl4. the problem is that libcurl3 and libcurl4 both use a common file "libcurl.so.4" and cannot exist simultaneously. 


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/e81c83b4-fc0a-417d-973a-168ce8349166%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

David Sol

unread,
Jun 27, 2018, 3:27:40 PM6/27/18
to mongodb-user
I got exactly the same problem on Ubuntu 18.04.

sudo apt-get install mongodb-enterprise-server

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

 

The following packages have unmet dependencies:

 mongodb-enterprise-server : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.


I have libcurl4 installed, and it is incompatible with libcurl3.

In this webpage they talk about the same issue affecting viber: https://linuxconfig.org/how-to-install-viber-on-ubuntu-18-04-bionic-beaver-linux

Amar Nath

unread,
Jun 27, 2018, 4:10:28 PM6/27/18
to mongod...@googlegroups.com
Were you able to run mongod without libcurl3? 

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.

To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.

Andrew Morrow

unread,
Jun 28, 2018, 1:27:12 PM6/28/18
to mongod...@googlegroups.com

Amar -

Could you please answer the earlier question for details on your OS distro and version and mongodb version? Without that information it is difficult for us to investigate the issue. It would also be helpful if you provided details on how you installed mongodb (built from source, downloaded a tarball, installed via distro provided packages, installed from our packages, etc.).

Thanks,
Andrew


On Wed, Jun 27, 2018 at 7:35 AM Amar Nath <immort...@gmail.com> wrote:
mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by mongod)

This is the error generated. It works fine when I install libcurl3. But installing 'libcurl3' uninstalls 'libcurl4' and 'Virtualbox5.2'. Virtualbox is an important software. there are a bunch of other softwares that require libcurl4. the problem is that libcurl3 and libcurl4 both use a common file "libcurl.so.4" and cannot exist simultaneously. 

On Wed, Jun 27, 2018 at 7:52 AM, 'Wan Bachtiar' via mongodb-user <mongod...@googlegroups.com> wrote:

mongod requires libcurl3. But libcurl3 can’t be installed simultaneously with libcurl4

Hi Amar,

Could you post any message indicating the dependency error ?

Also, could you provide the following information:

  • MongoDB version.
  • Operating Systems and version.

Regards,
Wan.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.

To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.

To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.

Andrew Morrow

unread,
Jun 28, 2018, 1:29:53 PM6/28/18
to mongod...@googlegroups.com

Hi David -

I have similar questions for you. I see that you are using Ubuntu 18.04, but could you please provide details on what version of mongodb you are trying to install and details on how you have instructed your package manager to obtain it?

Thanks,
Andrew


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.

To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.

Amar Nath

unread,
Jun 28, 2018, 2:59:21 PM6/28/18
to mongodb-user
OS: UBUNTU 18.04 bionic 64 bit

I extracted the tarball.

Amar Nath

unread,
Jun 28, 2018, 3:03:37 PM6/28/18
to mongod...@googlegroups.com
Mongo DB 4.0 Enterprise 
Same problem existed with MongoDB 3.6.5..
I used the instructions given on the official website to install using tarball. 

On Fri 29 Jun, 2018, 12:29 AM Amar Nath, <immort...@gmail.com> wrote:
OS: UBUNTU 18.04 bionic 64 bit

I extracted the tarball.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.

To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.

Andrew Morrow

unread,
Jun 28, 2018, 3:22:22 PM6/28/18
to mongod...@googlegroups.com

Hi Amar -

Well, we haven't yet released tarballs for 18.04 (or packages for that matter), so I'm guessing that you are trying to run the Ubuntu 16.04 binaries on 18.04. That should generally work, but unfortunately will require that you have libcurl3 installed, and there is no way around it. Once we release 18.04 tarballs you will not have this problem, as the DT_NEEDED entry for libcurl in mongod is as follows:

$ ./mongod --version
db version v4.1.0-458-g6b917a9b0e

$ readelf -a mongod  | grep curl
 0x0000000000000001 (NEEDED)             Shared library: [libcurl.so.4]

So you won't need to install libcurl3 once those builds are available.

Also, if you don't mind my asking: why are you doing tarball installs rather than using the packages we provide and the package manager?

Thanks,
Andrew


Amar Nath

unread,
Jun 28, 2018, 3:26:52 PM6/28/18
to mongod...@googlegroups.com
I tried the package but it uninstalled my VirtualBox. So I thought may be tarball installation will work but the dependencies still required. I usually prefer the deb package.


Amar Nath

unread,
Jun 28, 2018, 3:27:48 PM6/28/18
to mongod...@googlegroups.com
Please do release the updates soon. 

David Sol

unread,
Jun 30, 2018, 1:26:17 PM6/30/18
to mongodb-user
This is what I got:

corsario@Lenny:~$ sudo apt-get install mongodb-enterprise
[sudo] password for corsario: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mongodb-enterprise : Depends: mongodb-enterprise-server but it is not going to be installed
                      Depends: mongodb-enterprise-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
corsario@Lenny:~$ sudo apt-get install mongodb-enterprise-server 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mongodb-enterprise-server : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
corsario@Lenny:~$ lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic


echo "deb [ arch=amd64,arm64,ppc64el,s390x ] http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list

I guess I have to wait for the bionic version...

Wan Bachtiar

unread,
Jul 2, 2018, 1:45:17 AM7/2/18
to mongodb-user

Hi,

Worth mentioning that libcurl is introduced as a dependency in MongoDB Community version since version 4.0. MongoDB Community version 3.6.x does not have libcurl as a dependency.

Please note that the MongoDB Enterprise edition is a commercially supported product. If your company/organisation has a commercial subscription I would suggest to open a case in the MongoDB Commercial Support Portal.

Alternatively if you are evaluating MongoDB Enterprise and interested, send me a private message with your contact details and I can request a MongoDB Account Executive to contact you.

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages