最佳答案
当我试图删除一个包时,出现了一个错误,因此它处于破碎状态。我尝试了以下方法:
sudo dpkg --remove --force-remove-reinstreq rvm
产出:
(Reading database ... 41743 files and directories currently installed.)
Removing rvm (1.29.3-1) ...
bash: rvm: command not found
dpkg: error processing package rvm (--purge):
subprocess installed pre-removal script returned error exit status 127
Errors were encountered while processing:
rvm
.
sudo dpkg --purge rvm
输出: 与上述相同
sudo dpkg -i --force-overwrite package
产出:
dpkg: error processing archive rvm (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
rvm
有没有办法强制删除它,忽略所有错误? 我在 WSL 上使用 Ubuntu 16.04。