OS: Ubuntu 16.04
I want to install redis-server on my 512mb RAM VPS server from Digitalocean, I rean the command and I got,
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 311316 files and directories currently installed.)
Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-
8ubuntu1.9_amd64.deb ...
Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.9) over
(1:9.10.3.dfsg.P4-8ubuntu1.7) ...
dpkg: unrecoverable fatal error, aborting:
fork failed: Cannot allocate memory
E: Sub-process /usr/bin/dpkg returned an error code (2)
I ran sudo dpkg --configure -a and sudo apt-get -f install, I got
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libisc-export160
The following packages will be upgraded:
libisc-export160
1 upgraded, 0 newly installed, 0 to remove and 169 not upgraded.
1 not fully installed or removed.
Need to get 0 B/153 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 311316 files and directories currently installed.)
Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-
8ubuntu1.9_amd64.deb ...
E: Sub-process /usr/bin/dpkg returned an error code (2)
I checked the space,
man@pay:$ free -t
total used free shared buff/cache available
Mem: 500060 352068 76032 5800 71960 114020
Swap: 0 0 0
Total: 500060 352068 76032
What am I missing to make redis-server package install?