Installing using apt-get

Hi,
I can’t install or update couchbase using apt-get on ubuntu server 14.04.5 LTS
Ubuntu/Debian Installation

When I run:
sudo apt-get update
I get this error:
W: GPG error: http://packages.couchbase.com trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6EF1EAC479CF7903

apt-key list

pub   1024D/CD406E62 2012-09-10
uid                  Couchbase Release Key (RPM) <support@couchbase.com>
sub   1024g/E70BDBCC 2012-09-10

pub   2048R/D9223EDA 2012-03-06
uid                  Couchbase Release Key <support@couchbase.com>
sub   2048R/71B5714D 2012-03-06

Adding the GPG signature solved the issue for me.

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6EF1EAC479CF7903

UPD: If you are having problems with getting the key via standard port (11371) You can force port 80:
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6EF1EAC479CF7903

1 Like