Skip to content
Follow
Ubuntu Linux

How to Install Apache CouchDB on Ubuntu 24.04

Richard
Written by
Richard
Mar 13, 2025 Updated Jul 13, 2026 3 min read
How to Install Apache CouchDB on Ubuntu 24.04
How to Install Apache CouchDB on Ubuntu 24.04

Installing Apache CouchDB on Ubuntu 24.04 involves using the `apt` package manager after adding CouchDB’s official software sources. This process installs the core `couchdb` package and ensures you get the latest stable version, which is currently 3.3.2.

Apache CouchDB is a powerful NoSQL database that stores data as flexible JSON documents instead of traditional tables. This makes it easy to manage diverse or changing data structures.

It’s especially useful for applications that need to sync data across different servers, thanks to its multi-master replication feature. CouchDB simplifies development for many modern apps.

⚡ Quick Answer

Install Apache CouchDB on Ubuntu 24.04 by adding its repository and using apt. First, install curl and other prerequisites, then add the CouchDB GPG key and repository. Finally, run ‘sudo apt install couchdb’ and follow the prompts for configuration.

Import and add CouchDB key and repository

Adding the CouchDB key and repository is the first step to install CouchDB Ubuntu 24.04. These commands tell your computer where to find the CouchDB software and ensure it’s safe to install. You’ll need to run a couple of commands to get these details set up before you can actually install the database.

To begin, please install the following packages to help you set up CouchDB.

🐧Bash / Shell
sudo apt update
sudo apt install curl apt-transport-https gnupg

Next, import the repository GPG key.

💻Code
curl https://couchdb.apache.org/repo/keys.asc | gpg --dearmor | sudo tee /usr/share/keyrings/couchdb-archive-keyring.gpg >/dev/null 2>&1
source /etc/os-release

Then, add the repository.

Command Prompt
echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ noble main" 
| sudo tee /etc/apt/sources.list.d/couchdb.list >/dev/null

Finally, update and install CouchDB.

🐧Bash / Shell
sudo apt update
sudo apt install couchdb

The installer will prompt you to choose between installing CouchDB in clustered or standalone mode. Clustering involves multiple servers collaborating as a single, distributed data store.

We will install CouchDB in a standalone mode on a single server.

💻Code
 ┌─────────┤ Configuring couchdb ├─────────┐
│ General type of CouchDB configuration: │
│ │
standalone
│ clustered │
│ none │
│ │
│ │
│ <Ok> │
│ │
└─────────────────────────────────────────┘
💡Tip
Next, you can set the IP address of the network interface to which CouchDB will bind. For a single-server setup, you can leave the default IP address [127.0.0.1].

Setting the admin password on the next screen secures CouchDB and exits the insecure "admin party" mode. This password protects your CouchDB installation.

⚠️Warning
If you leave this field empty, an admin user will not be created.

Complete the installation.

Verify CouchDB installation

After you install CouchDB Ubuntu 24.04, checking that it’s running right is important. You can test the CouchDB installation by using a simple command called curl on your computer’s local address. If everything worked, you’ll see a message that says CouchDB is ready to go.

💻Code
curl http://127.0.0.1:5984/

The command will output something similar to the one below.

💻Code
{
"couchdb":"Welcome",
"version":"3.1.0",
"git_sha":"ff0feea20",
"uuid":"4589130c33b0dae4c166330463542ad4",
"features":[
"access-ready",
"partitioned",
"pluggable-storage-engines",
"reshard",
"scheduler"
],
"vendor":{
"name":"The Apache Software Foundation"
}
}

To test in the GUI, you can access the CouchDB web-based interface using the server hostname or IP address.

💻Code
http://127.0.0.1:5984/_utils/

Type in the admin username and password.

couchdb ubuntu install
couchdb ubuntu install
couchdb ubuntu install 1
couchdb ubuntu install 1

That should do it!

Conclusion:

Installing Apache CouchDB on Ubuntu 24.04 provides a robust and flexible NoSQL database solution suitable for various applications. Key takeaways include:

  • User-Friendly: CouchDB’s schema-free JSON document format allows for easy data manipulation.
  • Multi-Master Replication: Enhances data availability by allowing changes on any node in the system.
  • Standalone Setup: Ideal for single server environments, providing a simple configuration process.
  • Admin Security: Setting an admin password during installation is crucial to secure your CouchDB instance.
  • Web Interface Access: Easy access to CouchDB management through the web-based interface for monitoring and administration.

Following the installation steps outlined above, you’ll have a functional CouchDB database ready to handle your flexible data storage needs.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Setup MariaDB Master Slave Replication on Ubuntu
Ubuntu Linux How to Setup MariaDB Master Slave Replication on Ubuntu
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04
How to Repair or Reset WSL Ubuntu on Windows 11
Windows How to Repair or Reset WSL Ubuntu on Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *