# Problem installation on Ubuntu

**URL:** https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325
**Category:** Installation
**Created:** [July 14, 2018, 4:29pm UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325 "2018-07-14T16:29:31Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Pierrot](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pierrot](https://discuss.aerospike.com/u/Pierrot)
#### Post date: [July 14, 2018, 4:29pm UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/1 "2018-07-14T16:29:31Z")

</div>

Hi !!!

I am a little bit in my trouble to install Aerospike on Ubuntu, because this command for the installation of the packadge on the server does not exist: $ sudo ./asinstall. (answer: command not found) My Virtual Machine is VirtualBox. Thank you for your answer.

Pierrot

---

<div class="post-metadata">

### Author: ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)
#### Post date: [July 14, 2018, 10:26pm UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/2 "2018-07-14T22:26:36Z")

</div>

Can you give us more details? whats been done so far? what files are in your directory? did you extract?

---

<div class="post-metadata">

### Author: ![Pierrot](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pierrot](https://discuss.aerospike.com/u/Pierrot)
#### Post date: [July 15, 2018, 5:01pm UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/3 "2018-07-15T17:01:22Z")

</div>

Hello Please find my configuration and the list of my Aerospike installation. I followed the installation and update procedure from this link [https://www.aerospike.com/docs/operations/install/tools/ubuntu](https://www.aerospike.com/docs/operations/install/tools/ubuntu) I could not do anything from this line The contents of the directory should include:

- asinstall - A script to automate the installation process
- aerospike-tools- .ubuntu14…x86\_64.deb - Aerospike command-line tools and utilities. How to do this with asinstall ???

Thank you for your lighting.

Pierrot

```auto
CONFIGURATION
PC portable Windows10
Machine Virtuel : VirtualBox
Serveur Ubuntu : Ubuntu 14.04.5 LTS vagrant-ubuntu-trusty-64 tty1

```

```auto
INSTALLATION AEROSPIKE
$ sudo loadkeys fr
$ ls -a
. .bash_history
.. .bash_logout
aerospike-server-community-4.2.0.4-ubuntu16 .bashrc
aerospike-server-community-4.2.0.4-ubuntu16.04 .bashrc
aerospike.tgz .profile
aerospike-tools-4.2.0.4-ubuntu16 .ssh
asinstall (empty folder).

```

---

<div class="post-metadata">

### Author: ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)
#### Post date: [July 20, 2018, 3:04pm UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/4 "2018-07-20T15:04:23Z")

</div>

Did you only want the tools?

---

<div class="post-metadata">

### Author: ![Pierrot](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pierrot](https://discuss.aerospike.com/u/Pierrot)
#### Post date: [July 29, 2018, 1:40am UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/5 "2018-07-29T01:40:07Z")

</div>

Hi !!!

I don’t why I can’t install “asinstall” on Aerospike ? I give my error :

```auto
vagrant@vagrant-ubuntu-trusty-64:~$ cd aerospike-tools-3.15.3.8.ubuntu16
vagrant@vagrant-ubuntu-trusty-64:~/aerospike-tools-3.15.3.8.ubuntu16$ sudo ./asinstall
sudo: ./asinstall: command not found

vagrant@vagrant-ubuntu-trusty-64:~$ dpkg -l | grep aerospike-tools
ii aerospike-tools 3.15.3.8 amd64 Aerospike server tools.
vagrant@vagrant-ubuntu-trusty-64:~$ asadm
Seed: [('127.0.0.1', 3000, None)]
Config_file: /home/vagrant/.aerospike/astools.conf, /etc/aerospike/astools.conf
Aerospike Interactive Shell, version 0.1.19

ERROR: Not able to connect any cluster with [('127.0.0.1', 3000, None)].
vagrant@vagrant-ubuntu-trusty-64:~$ aql
Seed: 127.0.0.1
User: None
Config File: /etc/aerospike/astools.conf /home/vagrant/.aerospike/astools.conf
2018-07-29 01:20:30 WARN Failed to connect to seed 127.0.0.1 3000. AEROSPIKE_ERR_CONNECTION Socket write error: 111, 127.0.0.1:3000
Error -10: Failed to connect

```

Thank you for your help

---

<div class="post-metadata">

### Author: ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)
#### Post date: [July 29, 2018, 1:58am UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/6 "2018-07-29T01:58:16Z")

</div>

The asinstall script is part of the server package:

> <https://github.com/aerospike/aerospike-server/blob/master/pkg/deb/asinstall>

It installs the server and tools.

---

<div class="post-metadata">

### Author: ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)
#### Post date: [July 29, 2018, 8:47am UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/8 "2018-07-29T08:47:23Z")

</div>

Fixed the url.

---

<div class="post-metadata">

### Author: ![Pierrot](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pierrot](https://discuss.aerospike.com/u/Pierrot)
#### Post date: [July 31, 2018, 1:25am UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/9 "2018-07-31T01:25:44Z")

</div>

Hi !! I saw your script about Installation on Ubuntu. I beginning on Ubuntu, I can’t to run your script. I copied this and put on Cmder emulation Ubuntu, with ROOT, but Nothing, could you tell me how to do this executable :

```auto
C:\Users\Dev-Pro\aerospike-vm\vagrant
λ vagrant ssh
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-153-generic x86_64)

 * Documentation: https://help.ubuntu.com/
.
.
.
Last login: Mon Jul 30 23:47:16 2018 from 10.0.2.2
vagrant@vagrant-ubuntu-trusty-64:~$ sudo -i
root@vagrant-ubuntu-trusty-64:~$# #!/bin/bash 
2 # Install Aerospike server and tools on Debian6/Debian7/Ubuntu12.   
3 # This script must be run as root or sudo. 
4 
 
5 #------------------ 
6 # Verify User 
7 #------------------ 
8 
 
9 if [$EUID -ne 0] 
10 then 
11 echo "This script requires root or sudo privileges." 
12 exit 1 
13 fi 
14
.
.
.
63 echo dpkg "$@" aerospike-server-*.deb 
64 dpkg "$@" aerospike-server-*.deb 
65 fi 

```

Thank you.

---

<div class="post-metadata">

### Author: ![pgupta](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/pgupta/32/2351_2.png) [@pgupta](https://discuss.aerospike.com/u/pgupta)
#### Post date: [July 31, 2018, 5:16am UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/10 "2018-07-31T05:16:01Z")

</div>

asinstall is in the sever tarball.

```
$ tar xvf aerospike-server.tgz
$ cd aerospike-server-*
$ sudo ./asinstall
$ sudo ./aerospike-tools-deps/install.sh

```

---

<div class="post-metadata">

### Author: ![Pierrot](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pierrot](https://discuss.aerospike.com/u/Pierrot)
#### Post date: [July 31, 2018, 8:46am UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/11 "2018-07-31T08:46:14Z")

</div>

Hi !! Thank you for your command, it’s ok to install " ./asintall" and “aerospike Tools with this command : dpkg -l | grep aerospike-tools”.

It’s not clear to configure Tools Configuration File, I used this example from Aerspike :slight\_smile : root@vagrant-ubuntu-trusty-64:~/aerospike-tools-3.15.3.8.ubuntu16.04.x86\_64.deb# host=“127.0.0.1:3000” port=3000 tls-enable=true tls-enable=true: command not found

I can’t install “asdm, aql, asinfo, asbackup” I have by example this error : root@vagrant-ubuntu-trusty-64:~/aerospike-server-community-4.2.0.7-ubuntu16.04# aql Seed: 127.0.0.1 User: None Config File: /etc/aerospike/astools.conf /root/.aerospike/astools.conf 2018-07-31 08:00:53 WARN Failed to connect to seed 127.0.0.1 3000. AEROSPIKE\_ERR\_CONNECTION Socket write error: 111, 127.0.0.1:3000 Error -10: Failed to connect

I try to install this Aerospike system with many difficulties, but it’s no easy, Iwould like just undestand to do my education project with university.

Thank you for your help.

---

<div class="post-metadata">

### Author: ![pgupta](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/pgupta/32/2351_2.png) [@pgupta](https://discuss.aerospike.com/u/pgupta)
#### Post date: [July 31, 2018, 1:50pm UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/12 "2018-07-31T13:50:56Z")

</div>

See my edit above on installing tools after ./asinstall. Those are from my notes on when I installed Aerospike on Ubuntu. (BTW - don’t use TLS just yet - takes a bit of configuration to set it up on both sides - aql(client) and aerospike(server).)

---

<div class="post-metadata">

### Author: ![Pierrot](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pierrot](https://discuss.aerospike.com/u/Pierrot)
#### Post date: [August 10, 2018, 11:42am UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/13 "2018-08-10T11:42:53Z")

</div>

Hi !!! I see your response, please what does mean **BTW**? You advise me, that I don’t use TLS, but I use Vagrant where iI find TLS. How I do this ?

Thank you.

---

<div class="post-metadata">

### Author: ![pgupta](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/pgupta/32/2351_2.png) [@pgupta](https://discuss.aerospike.com/u/pgupta)
#### Post date: [August 10, 2018, 6:48pm UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/14 "2018-08-10T18:48:19Z")

</div>

BTW → By the way… sorry for using acronyms. TLS - Transport Layer Security - when enabled in aerospike server configuration file - encrypts traffic between aerospike client and aerospike server - its only available in Aerospike Enterprise Edition.

---

<div class="post-metadata">

### Author: ![nanokassa](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/nanokassa/32/1062_2.png) [@nanokassa](https://discuss.aerospike.com/u/nanokassa)
#### Post date: [December 20, 2018, 4:39am UTC](https://discuss.aerospike.com/t/problem-installation-on-ubuntu/5325/15 "2018-12-20T04:39:01Z")

</div>

Just install build-essentials and other need packages
