5

Does anyone know how to install CouchDB on Ubuntu Server 16.04?

The manual in the CouchDB docs seems to be broken and a simple apt-get install couchdbresults in Version 1.6.1.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
Bernd
  • 169
  • 2
  • 9

4 Answers4

9

This will install CouchDB 2.1:

  1. Add "deb https://apache.bintray.com/couchdb-deb xenial main" to /etc/apt/sources.list using your favorite editor
  2. Add the public key to apt:

    curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -

  3. Depending on your setup you may need to install https for apt

    sudo apt-get install apt-transport-https

  4. Update apt and install!

    sudo apt-get update && sudo apt-get install couchdb

MadPink
  • 294
  • 1
  • 10
  • This is really works on Ubunut 16.04 I have a lot of issues with current version from official website - try to use old version of erlang, but install couchdb 2.1 is resolve all issues. – Serhii Polishchuk Apr 30 '18 at 05:37
4

Try the snap for CouchDB, there isn't an apt package for CouchDB 2.1 yet. http://docs.couchdb.org/en/latest/install/snap.html. (If this is what you already tried from the manual and it didn't work, share any error messages you received)

Lorna Mitchell
  • 1,819
  • 13
  • 22
  • It can be install by apt, just needs to be added to the sources.list – MadPink Oct 19 '17 at 17:51
  • 5
    sudo snap install couchdb `error: snap "couchdb" not found` I get this message on a fresh install of Ubuntu 18. 2 weeks ago same server, fresh install, worked. Now I get this error – Pian0_M4n Aug 14 '18 at 16:05
  • 2
    I get the same: `error: snap "couchdb" not found' on ubuntu 18 – iosifv Nov 20 '18 at 09:42
  • Try searching; there may be more than one couchdb package available. `snap find couchdb` – gruppler May 07 '19 at 20:15
1

I setup CouchDB 2.1.1 on a Digital Ocean droplet, running on Ubuntu 16 (xenial), with HTTPS (using a Let's encrypt free certificate).

Rough steps where as follows,

I later saw the following which was close to what I did and one of the better guides available, https://www.joshmorony.com/creating-a-couchdb-database-on-an-ubuntu-server-digital-ocean/

Joseph Simpson
  • 4,054
  • 1
  • 24
  • 28
0

You can use this script to install coushDB 2.x on Ubuntu 16.04 : https://github.com/afiskon/install-couchdb :

 mkdir temp
 cd temp
 wget https://raw.githubusercontent.com/afiskon/install-couchdb/master/install-couchdb.sh
sh install-couchdb.sh
# then see http://localhost:5984/_utils/
bashizip
  • 562
  • 5
  • 14