我尝试使用以下命令在 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}