How to Install Apache CouchDB on Ubuntu 24.04

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

You install Apache CouchDB on Ubuntu 24.04 by adding its official repository and using the `apt` package manager.

Apache CouchDB is a powerful, open-source NoSQL database designed for simplicity and reliability. It stores your data as flexible JSON documents, eliminating the need for rigid schemas.

This approach simplifies development and data management, especially for applications handling diverse or rapidly changing data structures. CouchDB excels at multi-master replication, keeping your data synchronized across multiple servers.

The current stable version, CouchDB 3.3.2, offers robust features for modern application needs.

⚡ 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

To install CouchDB on Ubuntu, you must first import and add its GPG key and repository.

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> │
│ │
└─────────────────────────────────────────┘

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].

On the next screen, set the admin password. Setting the admin password in the following prompt is essential, as this action will secure CouchDB and take it out of the insecure “admin party” mode.

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

Complete the installation.

Verify CouchDB installation

After installing CouchDB, run the command below to verify its installation.

💻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.

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

Leave a Comment

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

Exit mobile version