![在 Ubuntu 中无法卸载 redis-server?](https://linux22.com/image/1577813/%E5%9C%A8%20Ubuntu%20%E4%B8%AD%E6%97%A0%E6%B3%95%E5%8D%B8%E8%BD%BD%20redis-server%EF%BC%9F.png)
我尝试使用以下命令在 Ubuntu 上安装 Redis:
sudo apt install redis-server
该过程部分安装且超时,并且 redis 服务未安装。
之后我尝试删除安装:
sudo apt remove redis-server
但卸载仍然挂起(超过 30 分钟)并且没有进展:
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) ...
除了使用之外,还有其他方法可以删除这个包吗apt-get
?
答案1
看当安装后脚本总是失败时如何强制删除 在 Ask Ubuntu 上。简而言之,尝试
sudo dpkg --purge --force-all {package name}