Installing libcouchbase-dev on ubuntu 20 (focal-fossa)

I’m trying to install libcouchbase-dev via for a pip install. But when i try to dpkg the .deb i get an unsupported error:

sudo dpkg -i ./couchbase-release-1.0-amd64.deb

(Reading database … 195140 files and directories currently installed.)
Preparing to unpack …/couchbase-release-1.0-amd64.deb …
Supported platforms are: bionic|buster|jessie|stretch|trusty|wheezy|xenial

Ubuntu is a fresh:

cat /etc/os-release
VERSION=“20.04 LTS (Focal Fossa)”
PRETTY_NAME=“Ubuntu 20.04 LTS”

Is there a workaround or a package i can use while waiting for the official release ?

Thank you for your support :slight_smile:

Hi, this is more of a libcouchbase question than a Python question, but, the instructions on this page state:

Note that as of Couchbase Data Platform 6.0, couchbase-release (1.0.6) supports Debian 7, 8, and 9, and Ubuntu 12.04, 14.04, 16.04, and 18.04. If you wish to install a Couchbase SDK on another Ubuntu or Debian variation, follow these steps (but note that while newer releases may work, other platforms are not necessarily supported):

Adding repo manually

# Install Couchbase's GPG key
sudo wget -O - | sudo apt-key add -
# Adding Ubuntu 18.04 repo to apt/sources.list of 18.10 or 19.04
echo "deb bionic bionic/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
# To install or upgrade packages
sudo apt-get update
sudo apt-get install libcouchbase-dev libcouchbase2-bin build-essential

If that fails you can try installing the other dependencies then build from the 2.10.6 release on GitHub. However, it appears we don’t officially support libcouchbase 2.x on Ubuntus after 18.04, so please bear this in mind.



1 Like

Ok it worked, thank you for your support :slight_smile:

Note that i tried to get focal focal/main before trying on bionic but it failed