Skip to content

Instantly share code, notes, and snippets.

@tkfm-yamaguchi
Created December 12, 2018 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkfm-yamaguchi/42f91771ecd22a7154c8ed031ddf34cb to your computer and use it in GitHub Desktop.
Save tkfm-yamaguchi/42f91771ecd22a7154c8ed031ddf34cb to your computer and use it in GitHub Desktop.
Can't upgrade/purge redis server on Debian/Ubuntu (apt adapting distros)

Situation

  • Upgrading redis-server is failed with apt upgrade.
  • apt purge redis-server is failed

The reason for the failure of both apt command above is something is timeout.

Solution (one of)

If you disable the IPv6 on the system, the reason for time is that redis try to listen the IPv6 port according to its configuration (/etc/redis/redis.conf).

So removing the line configuring listing the IPv6 port from redis.conf.

from:

bind 127.0.0.1 ::1

to:

bind 127.0.0.1

Ref

https://askubuntu.com/a/1068569

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment