Can't Install Couchbase 6.0 on Ubantu 16.04 on AWS on EC2 instances

I am trying to build a couchbase cluster on AWS using EC2 instance and following this document :

https://docs.couchbase.com/server/6.0/install/ubuntu-debian-install.html

I am facing the issue in step 2.

root@ip-172-31-62-190:~# apt-get update

root@ip-172-31-62-190:~# service couchbase-server status
● couchbase-server.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
root@ip-172-31-62-190:~#

I would appreciate your help.

root@ip-172-31-62-190:~# cat /etc/apt/sources.list.d/couchbase.list
deb [ arch=amd64 ] http://packages.couchbase.com/releases/couchbase-server/enterprise/deb/ xenial xenial/main
deb [ arch=amd64 ] http://packages.couchbase.com/releases/couchbase-server/community/deb/ xenial xenial/main
deb http://packages.couchbase.com/ubuntu xenial xenial/main

root@ip-172-31-62-190:~# apt install ./couchbase-server.deb
Reading package lists… Done
E: Unsupported file ./couchbase-server.deb given on commandline
root@ip-172-31-62-190:~#

Hi Sarbamangal,
Thanks for using our software.
It’s a typo in document. You could run command like: apt install couchbase-server and it will work (remove ./ and .deb).
I will create ticket to fix this typo issue in this document.

Here is my output in AWS of Ubuntu 16.04 64-bit

root@ip-172-31-39-74:/home/ubuntu# dpkg -i couchbase-release-1.0-4-amd64.deb
Selecting previously unselected package couchbase-release.
(Reading database … 51334 files and directories currently installed.)
Preparing to unpack couchbase-release-1.0-4-amd64.deb …
Unpacking couchbase-release (1.0-4) …
Setting up couchbase-release (1.0-4) …
gpg: directory /root/.gnupg' created gpg: new configuration file/root/.gnupg/gpg.conf’ created
gpg: WARNING: options in /root/.gnupg/gpg.conf' are not yet active during this run gpg: keyring/root/.gnupg/secring.gpg’ created
gpg: keyring `/root/.gnupg/pubring.gpg’ created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key CD406E62: public key “Couchbase Release Key (RPM) support@couchbase.com” imported
gpg: key D9223EDA: public key “Couchbase Release Key support@couchbase.com” imported
gpg: key 79CF7903: public key “Couchbase Builder Key support@couchbase.com” imported
gpg: Total number processed: 3
gpg: imported: 3 (RSA: 2)
OK
root@ip-172-31-39-74:/home/ubuntu# apt-get update
Hit:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:4 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:5 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Get:6 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:8 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:9 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:10 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:11 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:12 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:13 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Sources [331 kB]
Get:14 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,528 B]
Get:15 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [251 kB]
Get:16 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [8,764 B]
Get:17 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [920 kB]
Get:18 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [370 kB]
Get:19 http://packages.couchbase.com/releases/couchbase-server/enterprise/deb xenial InRelease [3,336 B]
Get:20 http://security.ubuntu.com/ubuntu xenial-security/main Sources [144 kB]
Get:21 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [738 kB]
Get:22 http://packages.couchbase.com/releases/couchbase-server/community/deb xenial InRelease [2,957 B]
Get:23 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [305 kB]
Get:24 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.7 kB]
Get:25 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,440 B]
Get:26 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Sources [4,848 B]
Get:27 http://packages.couchbase.com/ubuntu xenial InRelease [3,007 B]
Get:28 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [6,740 B]
Get:29 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7,280 B]
Get:30 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4,456 B]
Get:31 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,804 B]
Get:32 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4,184 B]
Get:33 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B]
Get:34 http://packages.couchbase.com/releases/couchbase-server/enterprise/deb xenial/xenial/main amd64 Packages [3,288 B]
Get:35 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [103 kB]
Get:36 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [3,416 B]
Get:37 http://packages.couchbase.com/releases/couchbase-server/community/deb xenial/xenial/main amd64 Packages [1,581 B]
Get:38 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [622 kB]
Get:39 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [256 kB]
Get:40 http://packages.couchbase.com/ubuntu xenial/xenial/main amd64 Packages [1,433 B]
Get:41 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [429 kB]
Get:42 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [172 kB]
Get:43 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [5,604 B]
Get:44 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2,676 B]
Fetched 26.0 MB in 3s (7,674 kB/s)
Reading package lists… Done

root@ip-172-31-39-74:/home/ubuntu# apt install couchbase-server
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-httplib2 python-minimal python2.7 python2.7-minimal
Suggested packages:
python-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
couchbase-server libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-httplib2 python-minimal python2.7 python2.7-minimal
0 upgraded, 9 newly installed, 0 to remove and 35 not upgraded.
Need to get 340 MB of archives.
After this operation, 797 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-minimal amd64 2.7.12-1ubuntu0~16.04.4 [339 kB]
Get:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7-minimal amd64 2.7.12-1ubuntu0~16.04.4 [1,261 kB]
Get:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-minimal amd64 2.7.12-1~16.04 [28.1 kB]
Get:4 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython2.7-stdlib amd64 2.7.12-1ubuntu0~16.04.4 [1,880 kB]
Get:5 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python2.7 amd64 2.7.12-1ubuntu0~16.04.4 [224 kB]
Get:6 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libpython-stdlib amd64 2.7.12-1~16.04 [7,768 B]
Get:7 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python amd64 2.7.12-1~16.04 [137 kB]
Get:8 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-httplib2 all 0.9.1+dfsg-1 [34.2 kB]
Get:9 http://packages.couchbase.com/releases/couchbase-server/enterprise/deb xenial/xenial/main amd64 couchbase-server amd64 6.0.1-2037-1 [336 MB]
Fetched 340 MB in 39s (8,717 kB/s)
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database … 51336 files and directories currently installed.)
Preparing to unpack …/libpython2.7-minimal_2.7.12-1ubuntu0~16.04.4_amd64.deb …
Unpacking libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.4) …
Selecting previously unselected package python2.7-minimal.
Preparing to unpack …/python2.7-minimal_2.7.12-1ubuntu0~16.04.4_amd64.deb …
Unpacking python2.7-minimal (2.7.12-1ubuntu0~16.04.4) …
Selecting previously unselected package python-minimal.
Preparing to unpack …/python-minimal_2.7.12-1~16.04_amd64.deb …
Unpacking python-minimal (2.7.12-1~16.04) …
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack …/libpython2.7-stdlib_2.7.12-1ubuntu0~16.04.4_amd64.deb …
Unpacking libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.4) …
Selecting previously unselected package python2.7.
Preparing to unpack …/python2.7_2.7.12-1ubuntu0~16.04.4_amd64.deb …
Unpacking python2.7 (2.7.12-1ubuntu0~16.04.4) …
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack …/libpython-stdlib_2.7.12-1~16.04_amd64.deb …
Unpacking libpython-stdlib:amd64 (2.7.12-1~16.04) …
Processing triggers for man-db (2.7.5-1) …
Processing triggers for mime-support (3.59ubuntu1) …
Setting up libpython2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.4) …
Setting up python2.7-minimal (2.7.12-1ubuntu0~16.04.4) …
Linking and byte-compiling packages for runtime python2.7…
Setting up python-minimal (2.7.12-1~16.04) …
Selecting previously unselected package python.
(Reading database … 52082 files and directories currently installed.)
Preparing to unpack …/python_2.7.12-1~16.04_amd64.deb …
Unpacking python (2.7.12-1~16.04) …
Selecting previously unselected package python-httplib2.
Preparing to unpack …/python-httplib2_0.9.1+dfsg-1_all.deb …
Unpacking python-httplib2 (0.9.1+dfsg-1) …
Selecting previously unselected package couchbase-server.
Preparing to unpack …/couchbase-server_6.0.1-2037-1_amd64.deb …
Warning: Transparent hugepages looks to be active and should not be.
Please look at https://developer.couchbase.com/documentation/server/current/install/thp-disable.html as for how to PERMANENTLY alter this setting.
Warning: Swappiness is not set to 0.
Please look at https://developer.couchbase.com/documentation/server/current/install/install-swap-space.html as for how to PERMANENTLY alter this setting.
Minimum RAM required : 4 GB
System RAM configured : 7.45 GB

Minimum number of processors required : 4 cores
Number of processors on the system : 4 cores
Unpacking couchbase-server (6.0.1-2037-1) …
Processing triggers for man-db (2.7.5-1) …
Setting up libpython2.7-stdlib:amd64 (2.7.12-1ubuntu0~16.04.4) …
Setting up python2.7 (2.7.12-1ubuntu0~16.04.4) …
Setting up libpython-stdlib:amd64 (2.7.12-1~16.04) …
Setting up python (2.7.12-1~16.04) …
Setting up python-httplib2 (0.9.1+dfsg-1) …
Setting up couchbase-server (6.0.1-2037-1) …

You have successfully installed Couchbase Server.
Please browse to http://ip-172-31-39-74:8091/ to configure your server.
Please refer to http://couchbase.com for additional resources.

Please note that you have to update your firewall configuration to
allow connections to the following ports:
4369, 8091 to 8094, 9100 to 9105, 9998, 9999, 11209 to 11211,
11214, 11215, 18091 to 18093, and from 21100 to 21299.

By using this software you agree to the End User License Agreement.
See /opt/couchbase/LICENSE.txt.

root@ip-172-31-39-74:/home/ubuntu# systemctl status couchbase-server
● couchbase-server.service - Couchbase Server
Loaded: loaded (/lib/systemd/system/couchbase-server.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-03-14 21:58:57 UTC; 3min 2s ago
Docs: http://docs.couchbase.com
Main PID: 3468 (beam.smp)
Tasks: 133
Memory: 418.0M
CPU: 11.705s
CGroup: /system.slice/couchbase-server.service
├─3468 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -A 16 – -root /opt/couchbase/lib/erlang -progname erl – -home /opt/couchbase – -smp enable -kernel inet_dist_listen_min 21100 inet_dist_li
├─3483 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/epmd -daemon
├─3623 /opt/couchbase/bin/gosecrets
├─3628 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -A 16 -sbt u -P 327680 -K true -swt low -MMmcs 30 -e102400 – -root /opt/couchbase/lib/erlang -progname erl – -home /opt/couchbase – -smp e
├─3658 sh -s disksup
├─3659 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/memsup
├─3660 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/cpu_sup
├─3662 inet_gethost 4
├─3663 inet_gethost 4
├─3673 /opt/couchbase/lib/erlang/erts-5.10.4.0.0.1/bin/beam.smp -P 327680 -K true – -root /opt/couchbase/lib/erlang -progname erl – -home /opt/couchbase – -pa /opt/couchbase/lib/erlang/lib/appmon-2.1.14
├─3701 sh -s disksup
├─3702 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/memsup
├─3703 /opt/couchbase/lib/erlang/lib/os_mon-2.2.14/priv/bin/cpu_sup
├─3709 /opt/couchbase/bin/priv/godu
├─3710 sh -s ns_disksup
├─3715 /opt/couchbase/bin/priv/godu
├─3726 /opt/couchbase/bin/saslauthd-port
├─3732 portsigar for ns_1@127.0.0.1
├─3733 /opt/couchbase/bin/goport -graceful-shutdown=false -window-size=524288
├─3734 /opt/couchbase/bin/memcached -C /opt/couchbase/var/lib/couchbase/config/memcached.json
└─3738 /opt/couchbase/bin/goxdcr -sourceKVAdminPort=8091 -xdcrRestPort=9998 -isEnterprise=true -ipv6=false

Mar 14 21:58:57 ip-172-31-39-74 systemd[1]: Started Couchbase Server.
Mar 14 21:58:59 ip-172-31-39-74 couchbase[3468]: {error_logger,{{2019,3,14},{21,58,59}},“global_trace:~n~p”,[{loop_the_locker,{multi,,,,‘nonode@nohost’,false,false}}]}
root@ip-172-31-39-74:/home/ubuntu# more /opt/couchbase/VERSION.txt
6.0.1-2037
root@ip-172-31-39-74:/home/ubuntu#

It works now. Thanks for your help.

Great to here you are able to install Couchbase Server in AWS. If you have any question, drop me a line at thuan at couchbase dot com
Thanks for using our product.