1

I was trying to install Redis on Ubuntu using:

sudo apt install redis-server

The process partially installed and timed-out and the redis-service was not installed.

After that I tried to remove the installation:

sudo apt remove redis-server

and still the uninstall is hanging (over 30 minutes) and not progressing:

Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  redis-server
0 upgraded, 0 newly installed, 1 to remove and 202 not upgraded.
After this operation, 919 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 300372 files and directories currently installed.)
Removing redis-server (2:3.0.6-1ubuntu0.3) ...

Is there a way to remove this package other that using apt-get?

4

See How to force remove when post-installation script always fail on Ask Ubuntu.  In short, try

sudo dpkg --purge --force-all {package name}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.