cannot install redis-server on ubuntu 18.04

It is possible to get redis-server running even when IPv6 is disabled.

Simply remove the ::1 IPv6 loopback address from the bind config option (by default located in /etc/redis/redis.conf):

- bind 127.0.0.1 ::1
+ bind 127.0.0.1

Now redis will not try to use the IPv6 network.


I found the culprit. I had disabled ipv6 a while back. I turned it back on and it installed fine and started up fine. You could probably alter the redis.conf file to force it to use IPv4 if it supports that mode only and then maybe you could run it without IPv6.