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 - http://packages.couchbase.com/ubuntu/couchbase.key | sudo apt-key add -
# Adding Ubuntu 18.04 repo to apt/sources.list of 18.10 or 19.04
echo "deb http://packages.couchbase.com/ubuntu 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.