Package libbson-static-1.0 required by libmongocrypt not found

I am having this exact issue Package 'libbson-static-1.0', required by 'libmongocrypt', not found

But I am not able to view the ticket https://jira.mongodb.org/browse/MONGOCRYPT-330 to see what the resolution if any is

1 Like

I was able to resolve the issue by installing libbson-dev

So basically to build a docker (debian) for our Go code with libmongocrypt inside it I just had to add:
sudo apt-get install libmongocrypt-dev libbson-dev

The above solution works for Debian 11 bullseye but not for Ubuntu 16.04, still getting the error.

Would love to see that JIRA ticket!

Managed to get things working for Ubuntu 16.04 like so:

apt-get install apt-transport-https pkg-config
sh -c ‘curl -s https://www.mongodb.org/static/pgp/libmongocrypt.asc | gpg --dearmor >/etc/apt/trusted.gpg.d/libmongocrypt.gpg’ &&
echo “deb https://libmongocrypt.s3.amazonaws.com/apt/ubuntu xenial/libmongocrypt/1.2 universe” | tee /etc/apt/sources.list.d/libmongocrypt.list &&
apt-get update &&
apt-get install -y libmongocrypt-dev libbson-dev && \

The urls were taken from libmongocrypt readme page, but note version change from 1.0 to 1.2 https://github.com/mongodb/libmongocrypt

Hi @Elena123,

I’m not sure why the Jira issue isn’t visible, but I have reported the problem.

The packaging issue was resolved in libmongocrypt 1.2.2 by way of https://github.com/mongodb/libmongocrypt/pull/191.

From your most recent post it looks like you may have originally had a 1.0 release in your Ubuntu 16.04 environment, which would not have the required fix.

It sounds like you may be set in all of your environments now. Do you need any further assistance with this?

Regards,
Stennie